mirror of https://github.com/folke/lazy.nvim.git
fix(rtp): correct order of adding to rtp. Fixes #226
This commit is contained in:
parent
72ab3e2933
commit
4e3a973f85
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue