feat(keys): more advanced options for setting lazy key mappings

This commit is contained in:
Folke Lemaitre 2022-12-22 10:32:21 +01:00
parent 28f1511e0a
commit 1c07ea15a3
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
4 changed files with 111 additions and 46 deletions

View file

@ -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