Skip to content

Commit

Permalink
fix(loader): reset cache before installing plugins during startup. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 17, 2023
1 parent 80c4dec commit aecdaab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/lazy/core/loader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ function M.install_missing()
break
end
end
Cache.reset()
require("lazy.manage").install({ wait = true, lockfile = true, clear = false })
-- remove any installed plugins from indexed, so cache will index again
for _, p in pairs(Config.plugins) do
Expand Down

0 comments on commit aecdaab

Please sign in to comment.