plugins/misc: adapt to new maps options

This commit is contained in:
Gaetan Lepage 2023-09-15 14:35:13 +02:00 committed by Gaétan Lepage
parent 574fb73258
commit dd6a114e52
18 changed files with 262 additions and 193 deletions

View file

@ -142,16 +142,14 @@ in {
require('auto-save').setup(${helpers.toLuaObject options})
'';
maps.normal = with cfg.keymaps; let
inherit (cfg.keymaps) silent;
in
mkMerge [
(mkIf (toggle != null) {
${toggle} = {
action = ":ASToggle<CR>";
inherit silent;
};
})
];
keymaps = with cfg.keymaps;
optional
(toggle != null)
{
mode = "n";
key = toggle;
action = ":ASToggle<CR>";
options.silent = cfg.keymaps.silent;
};
};
}