From cafe0b06e5aafb8be348f9e4f20edd8c6d23fcd0 Mon Sep 17 00:00:00 2001 From: Will Leinweber Date: Thu, 5 Jan 2023 18:39:14 +0100 Subject: [PATCH] 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. --- lua/lazy/view/sections.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lua/lazy/view/sections.lua b/lua/lazy/view/sections.lua index 8325332..dadfced 100644 --- a/lua/lazy/view/sections.lua +++ b/lua/lazy/view/sections.lua @@ -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)