mirror of https://github.com/folke/lazy.nvim.git
fix: always set Config.me regardless of reset rtp
This commit is contained in:
parent
df6c9863dc
commit
992c6791ef
|
@ -120,9 +120,10 @@ function M.setup(spec, opts)
|
||||||
if M.options.performance.reset_packpath then
|
if M.options.performance.reset_packpath then
|
||||||
vim.go.packpath = ""
|
vim.go.packpath = ""
|
||||||
end
|
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
|
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 = {
|
vim.opt.rtp = {
|
||||||
M.me,
|
M.me,
|
||||||
vim.env.VIMRUNTIME,
|
vim.env.VIMRUNTIME,
|
||||||
|
|
Loading…
Reference in New Issue