mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
build: utility method to create plugin list in markdown
This commit is contained in:
parent
45d669f61c
commit
fb46cb5862
2 changed files with 14 additions and 3 deletions
|
@ -209,7 +209,9 @@ end
|
|||
function M.foreach(t, fn)
|
||||
---@type string[]
|
||||
local keys = vim.tbl_keys(t)
|
||||
pcall(table.sort, keys)
|
||||
pcall(table.sort, keys, function(a, b)
|
||||
return a:lower() < b:lower()
|
||||
end)
|
||||
for _, key in ipairs(keys) do
|
||||
fn(key, t[key])
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue