fix: always overwrite any plugin spec for lazy.nvim to manage itself

This commit is contained in:
Folke Lemaitre 2022-12-01 16:28:25 +01:00
parent 714bc0a136
commit d46bc7795c
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 5 additions and 3 deletions

View File

@ -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()