feat: a gazilion rendering improvements

This commit is contained in:
Folke Lemaitre 2022-11-23 16:12:02 +01:00
parent 00ff59f385
commit a11fc5a0e0
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
5 changed files with 292 additions and 51 deletions

View file

@ -10,6 +10,9 @@ local function has_task(plugin, filter)
end
end
---@alias LazySection {title:string, filter:fun(plugin:LazyPlugin):boolean?}
---@type LazySection[]
return {
{
filter = function(plugin)
@ -51,6 +54,13 @@ return {
end,
title = "Running",
},
{
---@param plugin LazyPlugin
filter = function(plugin)
return plugin.updated and plugin.updated.from ~= plugin.updated.to
end,
title = "Updated",
},
{
filter = function(plugin)
return has_task(plugin, function(task)