mirror of https://github.com/folke/lazy.nvim.git
fix(ui): sort plugins case insensitive
This commit is contained in:
parent
7ca3bdb566
commit
4f27fc33c4
|
@ -241,6 +241,9 @@ function M:section(section)
|
||||||
end, self.plugins)
|
end, self.plugins)
|
||||||
|
|
||||||
local count = #section_plugins
|
local count = #section_plugins
|
||||||
|
table.sort(section_plugins, function(a, b)
|
||||||
|
return a.name:lower() < b.name:lower()
|
||||||
|
end)
|
||||||
if count > 0 then
|
if count > 0 then
|
||||||
self:append(section.title, "LazyH2"):append(" (" .. count .. ")", "LazyComment"):nl()
|
self:append(section.title, "LazyH2"):append(" (" .. count .. ")", "LazyComment"):nl()
|
||||||
for _, plugin in ipairs(section_plugins) do
|
for _, plugin in ipairs(section_plugins) do
|
||||||
|
|
Loading…
Reference in New Issue