Skip to content

Commit

Permalink
fix: always set Config.me regardless of reset rtp
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 20, 2022
1 parent df6c986 commit 992c679
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lua/lazy/core/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,10 @@ function M.setup(spec, opts)
if M.options.performance.reset_packpath then
vim.go.packpath = ""
end

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
M.me = debug.getinfo(1, "S").source:sub(2)
M.me = Util.norm(vim.fn.fnamemodify(M.me, ":p:h:h:h:h"))
vim.opt.rtp = {
M.me,
vim.env.VIMRUNTIME,
Expand Down

0 comments on commit 992c679

Please sign in to comment.