Skip to content

Commit

Permalink
fix: always overwrite any plugin spec for lazy.nvim to manage itself
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 2, 2022
1 parent 714bc0a commit d46bc77
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lua/lazy/core/plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit d46bc77

Please sign in to comment.