fix(rtp): correct order of adding to rtp. Fixes #226

This commit is contained in:
Folke Lemaitre 2022-12-29 08:21:22 +01:00
parent 72ab3e2933
commit 4e3a973f85
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)