feat: Move Update section above Updated

Before, the list of plugins that were just updated would appear above
the list of plugins that are still to be updated. So if you are trying
to update each plugin one at a time, you would have to keep going down
farther and farther to get back to the list of pending updates.

By switching the order of the two sections, the list of pending updates
stays first and makes it easier to read the changes of each plugin
before updating them.
This commit is contained in:
Will Leinweber 2023-01-05 18:39:14 +01:00
commit cafe0b06e5

View file

@ -46,6 +46,13 @@ return {
end,
title = "Breaking Changes",
},
{
---@param plugin LazyPlugin
filter = function(plugin)
return plugin._.updates
end,
title = "Updates",
},
{
---@param plugin LazyPlugin
filter = function(plugin)
@ -60,13 +67,6 @@ return {
end,
title = "Installed",
},
{
---@param plugin LazyPlugin
filter = function(plugin)
return plugin._.updates
end,
title = "Updates",
},
{
filter = function(plugin)
return has_task(plugin, function(task)