Skip to content

Commit fe6b0b0

Browse files
committed
feat: moved Config.package.reset -> Config.performance.reset_packpath
1 parent 6fe425c commit fe6b0b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/lazy/core/config.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ M.defaults = {
2121
package = {
2222
path = vim.fn.stdpath("data") .. "/site",
2323
name = "lazy", -- plugins will be installed under package.path/pack/{name}/opt
24-
reset = true, -- packpath will be reset to only include lazy. This makes packadd a lot faster
2524
},
2625
-- Any plugin spec that contains one of the patterns will use your
2726
-- local repo in the projects folder instead of fetchig it from github
@@ -51,6 +50,7 @@ M.defaults = {
5150
performance = {
5251
---@type LazyCacheConfig
5352
cache = nil,
53+
reset_packpath = true, -- packpath will be reset to only include lazy. This makes packadd a lot faster
5454
},
5555
}
5656

@@ -79,7 +79,7 @@ function M.setup(spec, opts)
7979
M.options.performance.cache = require("lazy.core.cache")
8080
M.root = M.options.package.path .. "/pack/" .. M.options.package.name .. "/opt"
8181

82-
if M.options.package.reset then
82+
if M.options.performance.reset_packpath then
8383
vim.go.packpath = M.options.package.path
8484
else
8585
vim.opt.packpath:prepend(M.options.package.path)

0 commit comments

Comments
 (0)