mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
fix(install): dont try re-installing failed missing plugins during startup. Fixes #303
This commit is contained in:
parent
1fd80159d0
commit
c85f929bd9
3 changed files with 34 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue