We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6affae6 commit ccc506dCopy full SHA for ccc506d
lua/lazy/core/config.lua
@@ -54,6 +54,7 @@ M.defaults = {
54
---@type LazyCacheConfig
55
cache = nil,
56
reset_packpath = true, -- packpath will be reset to only include lazy. This makes packadd a lot faster
57
+ reset_rtp = true,
58
},
59
debug = false,
60
}
@@ -83,6 +84,15 @@ function M.setup(spec, opts)
83
84
if M.options.performance.reset_packpath then
85
vim.go.packpath = ""
86
end
87
+ if M.options.performance.reset_rtp then
88
+ local me = debug.getinfo(1, "S").source:sub(2)
89
+ me = vim.fn.fnamemodify(me, ":p:h:h:h:h")
90
+ vim.opt.rtp = {
91
+ vim.fn.stdpath("config"),
92
+ "$VIMRUNTIME",
93
+ me,
94
+ }
95
+ end
96
97
vim.api.nvim_create_autocmd("User", {
98
pattern = "VeryLazy",
0 commit comments