fix(install): dont try re-installing failed missing plugins during startup. Fixes #303

This commit is contained in:
Folke Lemaitre 2023-01-03 22:50:14 +01:00
parent 1fd80159d0
commit c85f929bd9
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 34 additions and 9 deletions

View file

@ -326,4 +326,14 @@ function M.find(path)
end
end
---@param plugin LazyPlugin
function M.has_errors(plugin)
for _, task in ipairs(plugin._.tasks or {}) do
if task.error then
return true
end
end
return false
end
return M