refactor!: use a new keymaps configuration format

This commit is contained in:
n3oney 2023-04-10 13:42:31 +02:00
parent 7e566c9687
commit 0068af2d66
No known key found for this signature in database
GPG key ID: C786693DE727850E

View file

@ -266,9 +266,8 @@ in {
toLuaBindings = mode: maps:
builtins.map (value: ''
vim.keymap.set(${toLuaObject mode}, ${toLuaObject value.key}, ${
toLuaObject value.action
}, ${toLuaObject value.config})'') (genMaps mode maps);
vim.keymap.set(${toLuaObject mode}, ${toLuaObject value.key}, ${toLuaObject value.action}, ${toLuaObject value.config})
'') (genMaps mode maps);
# I'm not sure if every one of these will work.
allmap = toLuaBindings "" config.vim.maps.normalVisualOp;