mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat(keys): more advanced options for setting lazy key mappings
This commit is contained in:
parent
28f1511e0a
commit
1c07ea15a3
4 changed files with 111 additions and 46 deletions
|
@ -156,7 +156,7 @@ end
|
|||
function M.foreach(t, fn)
|
||||
---@type string[]
|
||||
local keys = vim.tbl_keys(t)
|
||||
table.sort(keys)
|
||||
pcall(table.sort, keys)
|
||||
for _, key in ipairs(keys) do
|
||||
fn(key, t[key])
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue