fix: always set Config.me regardless of reset rtp

This commit is contained in:
Folke Lemaitre 2022-12-20 16:02:06 +01:00
parent df6c9863dc
commit 992c6791ef
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 3 additions and 2 deletions

View File

@ -120,9 +120,10 @@ function M.setup(spec, opts)
if M.options.performance.reset_packpath then
vim.go.packpath = ""
end
if M.options.performance.rtp.reset then
M.me = debug.getinfo(1, "S").source:sub(2)
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.env.VIMRUNTIME,