1

Neovim: Add LaTeX specific localleader mappings

This commit is contained in:
2024-10-10 15:54:53 +02:00
parent 6ea184095d
commit 435ad9bb3b
5 changed files with 131 additions and 23 deletions

View File

@ -46,4 +46,17 @@
else if (args == null)
then "nil"
else "";
toLuaKeymap = args: let
removeDeprecatedMapAttrs = v: builtins.removeAttrs v ["lua"];
in ''
-- Set up keybinds using mylib.generators.toLuaKeymap {{{
do
local __nixvim_binds = ${toLuaObject (map removeDeprecatedMapAttrs args)}
for i, map in ipairs(__nixvim_binds) do
vim.keymap.set(map.mode, map.key, map.action, map.options)
end
end
-- }}}
'';
}