Make check_pinned work as intended

Skip "git.log" when check and pin is true if check_pinned isn't enabled.
Otherwise, the checker will not actually check pinned plugins but
silently skip them.
This commit is contained in:
Daniel Danner 2025-09-02 23:29:04 +02:00
commit 1687639320

View file

@ -55,7 +55,7 @@ local M = {}
M.log = {
---@param opts {updated?:boolean, check?: boolean}
skip = function(plugin, opts)
if opts.check and plugin.pin then
if opts.check and plugin.pin and not Config.options.checker.check_pinned then
return true
end
if opts.updated and not (plugin._.updated and plugin._.updated.from ~= plugin._.updated.to) then