Skip to content

Commit

Permalink
fix(checker): update updated after every manage operation. Fixes #141
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 24, 2022
1 parent 9110371 commit 86f2c67
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lua/lazy/manage/checker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ function M.fast_check(opts)
end
end
end
if opts.report ~= false then
M.report()
end
M.report(opts.report ~= false)
end

function M.check()
Expand All @@ -42,7 +40,8 @@ function M.check()
end)
end

function M.report()
---@param notify? boolean
function M.report(notify)
local lines = {}
M.updated = {}
for _, plugin in pairs(Config.plugins) do
Expand All @@ -54,7 +53,7 @@ function M.report()
end
end
end
if #lines > 0 and Config.options.checker.notify then
if #lines > 0 and notify and Config.options.checker.notify then
table.insert(lines, 1, "# Plugin Updates")
Util.info(lines)
end
Expand Down

0 comments on commit 86f2c67

Please sign in to comment.