Skip to content

Commit d46bc77

Browse files
committed
fix: always overwrite any plugin spec for lazy.nvim to manage itself
1 parent 714bc0a commit d46bc77

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lua/lazy/core/plugin.lua

+5-3
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,11 @@ function M.load()
215215
-- load specs
216216
Util.track("spec")
217217
local spec = M.spec()
218-
if not spec.plugins["lazy.nvim"] then
219-
spec:add({ "folke/lazy.nvim", lazy = false })
220-
end
218+
219+
-- add ourselves
220+
spec.plugins["lazy.nvim"] = nil
221+
spec:add({ "folke/lazy.nvim", lazy = true })
222+
221223
Config.plugins = spec.plugins
222224
Util.track()
223225

0 commit comments

Comments
 (0)