From d46bc7795c255f121d2d279764017c7d60edff88 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Thu, 1 Dec 2022 16:28:25 +0100 Subject: [PATCH] fix: always overwrite any plugin spec for lazy.nvim to manage itself --- lua/lazy/core/plugin.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lua/lazy/core/plugin.lua b/lua/lazy/core/plugin.lua index 0ecedfa..83975cb 100644 --- a/lua/lazy/core/plugin.lua +++ b/lua/lazy/core/plugin.lua @@ -215,9 +215,11 @@ function M.load() -- load specs Util.track("spec") local spec = M.spec() - if not spec.plugins["lazy.nvim"] then - spec:add({ "folke/lazy.nvim", lazy = false }) - end + + -- add ourselves + spec.plugins["lazy.nvim"] = nil + spec:add({ "folke/lazy.nvim", lazy = true }) + Config.plugins = spec.plugins Util.track()