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
|
@ -1,6 +1,7 @@
|
|||
local Config = require("lazy.core.config")
|
||||
local Manage = require("lazy.manage")
|
||||
local Util = require("lazy.util")
|
||||
local Plugin = require("lazy.core.plugin")
|
||||
local Git = require("lazy.manage.git")
|
||||
|
||||
local M = {}
|
||||
|
@ -31,13 +32,24 @@ function M.fast_check(opts)
|
|||
end
|
||||
|
||||
function M.check()
|
||||
Manage.check({
|
||||
show = false,
|
||||
concurrency = Config.options.checker.concurrency,
|
||||
}):wait(function()
|
||||
M.report()
|
||||
local errors = false
|
||||
for _, plugin in pairs(Config.plugins) do
|
||||
if Plugin.has_errors(plugin) then
|
||||
errors = true
|
||||
break
|
||||
end
|
||||
end
|
||||
if errors then
|
||||
vim.defer_fn(M.check, Config.options.checker.frequency * 1000)
|
||||
end)
|
||||
else
|
||||
Manage.check({
|
||||
show = false,
|
||||
concurrency = Config.options.checker.concurrency,
|
||||
}):wait(function()
|
||||
M.report()
|
||||
vim.defer_fn(M.check, Config.options.checker.frequency * 1000)
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
---@param notify? boolean
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue