feat: moved Config.package.reset -> Config.performance.reset_packpath

This commit is contained in:
Folke Lemaitre 2022-12-02 12:52:06 +01:00
parent 6fe425c91a
commit fe6b0b03ea
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,6 @@ M.defaults = {
package = {
path = vim.fn.stdpath("data") .. "/site",
name = "lazy", -- plugins will be installed under package.path/pack/{name}/opt
reset = true, -- packpath will be reset to only include lazy. This makes packadd a lot faster
},
-- Any plugin spec that contains one of the patterns will use your
-- local repo in the projects folder instead of fetchig it from github
@ -51,6 +50,7 @@ M.defaults = {
performance = {
---@type LazyCacheConfig
cache = nil,
reset_packpath = true, -- packpath will be reset to only include lazy. This makes packadd a lot faster
},
}
@ -79,7 +79,7 @@ function M.setup(spec, opts)
M.options.performance.cache = require("lazy.core.cache")
M.root = M.options.package.path .. "/pack/" .. M.options.package.name .. "/opt"
if M.options.package.reset then
if M.options.performance.reset_packpath then
vim.go.packpath = M.options.package.path
else
vim.opt.packpath:prepend(M.options.package.path)