mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 17:03:31 +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
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue