mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-01 21:04:30 +02:00
plugins/misc: adapt to new maps options
This commit is contained in:
parent
574fb73258
commit
dd6a114e52
18 changed files with 262 additions and 193 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue