mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +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
|
@ -299,21 +299,24 @@ in {
|
|||
require("coverage").setup(${helpers.toLuaObject setupOptions})
|
||||
'';
|
||||
|
||||
maps.normal = mkMerge (
|
||||
mapAttrsToList
|
||||
keymaps =
|
||||
flatten
|
||||
(
|
||||
optionName: properties: let
|
||||
key = cfg.keymaps.${optionName};
|
||||
in
|
||||
mkIf (key != null)
|
||||
{
|
||||
${key} = {
|
||||
mapAttrsToList
|
||||
(
|
||||
optionName: properties: let
|
||||
key = cfg.keymaps.${optionName};
|
||||
in
|
||||
optional
|
||||
(key != null)
|
||||
{
|
||||
mode = "n";
|
||||
inherit key;
|
||||
action = ":Coverage${properties.command}<CR>";
|
||||
silent = cfg.keymapsSilent;
|
||||
};
|
||||
}
|
||||
)
|
||||
keymapsDef
|
||||
);
|
||||
options.silent = cfg.keymapsSilent;
|
||||
}
|
||||
)
|
||||
keymapsDef
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue