Skip to content

Commit

Permalink
feat: moved Config.package.reset -> Config.performance.reset_packpath
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 2, 2022
1 parent 6fe425c commit fe6b0b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/lazy/core/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
},
}

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit fe6b0b0

Please sign in to comment.