diff --git a/lua/lazy/core/config.lua b/lua/lazy/core/config.lua index 12610cf3..f85e5c19 100644 --- a/lua/lazy/core/config.lua +++ b/lua/lazy/core/config.lua @@ -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 diff --git a/lua/lazy/core/loader.lua b/lua/lazy/core/loader.lua index 35941147..b17eac0f 100644 --- a/lua/lazy/core/loader.lua +++ b/lua/lazy/core/loader.lua @@ -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)