mirror of https://github.com/folke/lazy.nvim.git
fix(checker): dont report updates on install during startup
This commit is contained in:
parent
7b9b476a62
commit
8251c23c90
|
@ -14,7 +14,9 @@ function M.start()
|
||||||
M.check()
|
M.check()
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.fast_check()
|
---@param opts? {report:boolean} report defaults to true
|
||||||
|
function M.fast_check(opts)
|
||||||
|
opts = opts or {}
|
||||||
for _, plugin in pairs(Config.plugins) do
|
for _, plugin in pairs(Config.plugins) do
|
||||||
if not plugin.pin and plugin._.installed then
|
if not plugin.pin and plugin._.installed then
|
||||||
plugin._.has_updates = nil
|
plugin._.has_updates = nil
|
||||||
|
@ -25,7 +27,9 @@ function M.fast_check()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if opts.report ~= false then
|
||||||
M.report()
|
M.report()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.check()
|
function M.check()
|
||||||
|
|
|
@ -43,7 +43,7 @@ function M.run(ropts, opts)
|
||||||
runner:wait(function()
|
runner:wait(function()
|
||||||
vim.cmd([[do User LazyRender]])
|
vim.cmd([[do User LazyRender]])
|
||||||
Plugin.update_state()
|
Plugin.update_state()
|
||||||
require("lazy.manage.checker").fast_check()
|
require("lazy.manage.checker").fast_check({ report = false })
|
||||||
end)
|
end)
|
||||||
|
|
||||||
if opts.wait then
|
if opts.wait then
|
||||||
|
|
Loading…
Reference in New Issue