From 86f2c67aa80b3c64d131ba47189c42ca5a37ac14 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 24 Dec 2022 09:22:46 +0100 Subject: [PATCH] fix(checker): update updated after every manage operation. Fixes #141 --- lua/lazy/manage/checker.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lua/lazy/manage/checker.lua b/lua/lazy/manage/checker.lua index e0e458f..2b7a62a 100644 --- a/lua/lazy/manage/checker.lua +++ b/lua/lazy/manage/checker.lua @@ -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() @@ -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 @@ -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