Skip to content

Commit

Permalink
fix(ui): sort plugins case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Sep 28, 2023
1 parent 7ca3bdb commit 4f27fc3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/lazy/view/render.lua
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ function M:section(section)
end, self.plugins)

local count = #section_plugins
table.sort(section_plugins, function(a, b)
return a.name:lower() < b.name:lower()
end)
if count > 0 then
self:append(section.title, "LazyH2"):append(" (" .. count .. ")", "LazyComment"):nl()
for _, plugin in ipairs(section_plugins) do
Expand Down

0 comments on commit 4f27fc3

Please sign in to comment.