fix(loader): reset cache before installing plugins during startup. Fixes #803

This commit is contained in:
Folke Lemaitre 2023-05-17 19:36:00 +02:00
parent 80c4decc32
commit aecdaab6a6
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 0 deletions

View File

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