keymaps/config: fix formatting

merge unnecessarily split attrset
This commit is contained in:
pax 2026-02-02 18:52:57 -08:00
commit b772282836

View file

@ -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)})";