mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-02-04 19:05:55 +00:00
keymaps/config: fix formatting
merge unnecessarily split attrset
This commit is contained in:
parent
e9d59f47e8
commit
b772282836
1 changed files with 4 additions and 5 deletions
|
|
@ -37,11 +37,10 @@ in {
|
|||
then mkLuaInline keymap.action
|
||||
else keymap.action;
|
||||
|
||||
getOpts = keymap:
|
||||
{
|
||||
inherit (keymap) desc silent nowait script expr unique noremap;
|
||||
}
|
||||
// {remap = !keymap.noremap;};
|
||||
getOpts = keymap: {
|
||||
inherit (keymap) desc silent nowait script expr unique noremap;
|
||||
remap = !keymap.noremap;
|
||||
};
|
||||
|
||||
toLuaKeymap = bind: "vim.keymap.set(${toLuaObject bind.mode}, ${toLuaObject bind.key}, ${toLuaObject (getAction bind)}, ${toLuaObject (getOpts bind)})";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue