style: fix filter types

This commit is contained in:
Maria José Solano 2023-10-18 16:29:44 -07:00
commit c6d4613837

View file

@ -50,14 +50,12 @@ return {
title = "Breaking Changes", title = "Breaking Changes",
}, },
{ {
---@param plugin LazyPlugin
filter = function(plugin) filter = function(plugin)
return plugin._.updated and plugin._.updated.from ~= plugin._.updated.to return plugin._.updated and plugin._.updated.from ~= plugin._.updated.to
end, end,
title = "Updated", title = "Updated",
}, },
{ {
---@param plugin LazyPlugin
filter = function(plugin) filter = function(plugin)
return plugin._.cloned return plugin._.cloned
end, end,
@ -66,7 +64,7 @@ return {
{ {
---@param plugin LazyPlugin ---@param plugin LazyPlugin
filter = function(plugin) filter = function(plugin)
return plugin._.updates return plugin._.updates ~= nil
end, end,
title = "Updates", title = "Updates",
}, },
@ -92,7 +90,7 @@ return {
}, },
{ {
filter = function(plugin) filter = function(plugin)
return plugin._.loaded return plugin._.loaded ~= nil
end, end,
title = "Loaded", title = "Loaded",
}, },