Skip to content

Commit

Permalink
fix(rtp): correct order of adding to rtp. Fixes #226
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 29, 2022
1 parent 72ab3e2 commit 4e3a973
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/lazy/core/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ function M.setup(spec, opts)
if M.options.performance.rtp.reset then
vim.opt.rtp = {
M.me,
vim.fn.stdpath("config"),
vim.env.VIMRUNTIME,
vim.fn.fnamemodify(vim.v.progpath, ":p:h:h") .. "/lib/nvim",
vim.fn.stdpath("config"),
vim.fn.stdpath("config") .. "/after",
}
end
Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/core/loader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function M._load(plugin, reason)
Util.track({ plugin = plugin.name, start = reason.start })
Handler.disable(plugin)

vim.opt.runtimepath:prepend(plugin.dir)
vim.opt.runtimepath:append(plugin.dir)
local after = plugin.dir .. "/after"
if vim.loop.fs_stat(after) then
vim.opt.runtimepath:append(after)
Expand Down

0 comments on commit 4e3a973

Please sign in to comment.