From fe6b0b03ead3cfeb3f9bcc365c0364346c8e3c9d Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Fri, 2 Dec 2022 12:52:06 +0100 Subject: [PATCH] feat: moved Config.package.reset -> Config.performance.reset_packpath --- lua/lazy/core/config.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lazy/core/config.lua b/lua/lazy/core/config.lua index b452625..374ed54 100644 --- a/lua/lazy/core/config.lua +++ b/lua/lazy/core/config.lua @@ -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)