fix(loader): implemented correct adding to rtp. fix #230, fix #226

This commit is contained in:
Folke Lemaitre 2022-12-29 16:03:23 +01:00
parent c7122d64cd
commit 3a1a10cd75
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 34 additions and 8 deletions

View file

@ -182,8 +182,8 @@ function M.setup(spec, opts)
M.me = Util.norm(vim.fn.fnamemodify(M.me, ":p:h:h:h:h"))
if M.options.performance.rtp.reset then
vim.opt.rtp = {
M.me,
vim.fn.stdpath("config"),
M.me,
vim.env.VIMRUNTIME,
vim.fn.fnamemodify(vim.v.progpath, ":p:h:h") .. "/lib/nvim",
vim.fn.stdpath("config") .. "/after",