Moved keys.lua into fennel prefix trie

This commit is contained in:
2026-07-14 12:36:49 +01:00
parent aba45a7af1
commit 1b314768f1
7 changed files with 274 additions and 562 deletions
+8 -2
View File
@@ -2,9 +2,15 @@
local keys = require("config.keys").globals
for _, map in ipairs(keys) do
vim.keymap.set("n", map[1], map[2], {
local opts = {
noremap = true,
silent = true,
desc = map.desc,
})
}
for k, v in pairs(map) do
if k ~= 1 and k ~= 2 and k ~= "desc" and k ~= "mode" then
opts[k] = v
end
end
vim.keymap.set(map.mode or "n", map[1], map[2], opts)
end