mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-22 02:59:49 +01:00
refactor!: use a new keymaps configuration format
This commit is contained in:
parent
7e566c9687
commit
0068af2d66
1 changed files with 2 additions and 3 deletions
|
@ -266,9 +266,8 @@ in {
|
||||||
|
|
||||||
toLuaBindings = mode: maps:
|
toLuaBindings = mode: maps:
|
||||||
builtins.map (value: ''
|
builtins.map (value: ''
|
||||||
vim.keymap.set(${toLuaObject mode}, ${toLuaObject value.key}, ${
|
vim.keymap.set(${toLuaObject mode}, ${toLuaObject value.key}, ${toLuaObject value.action}, ${toLuaObject value.config})
|
||||||
toLuaObject value.action
|
'') (genMaps mode maps);
|
||||||
}, ${toLuaObject value.config})'') (genMaps mode maps);
|
|
||||||
|
|
||||||
# I'm not sure if every one of these will work.
|
# I'm not sure if every one of these will work.
|
||||||
allmap = toLuaBindings "" config.vim.maps.normalVisualOp;
|
allmap = toLuaBindings "" config.vim.maps.normalVisualOp;
|
||||||
|
|
Loading…
Reference in a new issue