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

@ -27,11 +27,13 @@ in {
config = mkIf cfg.enable {
extraPlugins = [cfg.package];
maps.normal = mkIf (cfg.keymap.key != null) {
${cfg.keymap.key} = {
keymaps = with cfg.keymap;
optional (key != null)
{
mode = "n";
inherit key;
action = ":Quickmath<CR>";
inherit (cfg.keymap) silent;
options.silent = cfg.keymap.silent;
};
};
};
}