Skip to content

Commit

Permalink
fix(checker): dont report updates on install during startup
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 23, 2022
1 parent 7b9b476 commit 8251c23
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions lua/lazy/manage/checker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ function M.start()
M.check()
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
if not plugin.pin and plugin._.installed then
plugin._.has_updates = nil
Expand All @@ -25,7 +27,9 @@ function M.fast_check()
end
end
end
M.report()
if opts.report ~= false then
M.report()
end
end

function M.check()
Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/manage/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function M.run(ropts, opts)
runner:wait(function()
vim.cmd([[do User LazyRender]])
Plugin.update_state()
require("lazy.manage.checker").fast_check()
require("lazy.manage.checker").fast_check({ report = false })
end)

if opts.wait then
Expand Down

0 comments on commit 8251c23

Please sign in to comment.