mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 17:28:39 +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
|
@ -33,20 +33,29 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
extraPlugins = [cfg.package];
|
||||
|
||||
maps.normal = with cfg.keymaps;
|
||||
(optionalAttrs (bdelete != null)
|
||||
{
|
||||
${bdelete} = {
|
||||
keymaps = with cfg.keymaps;
|
||||
helpers.mkKeymaps
|
||||
{
|
||||
mode = "n";
|
||||
options.silent = cfg.keymapsSilent;
|
||||
}
|
||||
(
|
||||
(
|
||||
optional
|
||||
(bdelete != null)
|
||||
{
|
||||
key = bdelete;
|
||||
action = ":Bdelete<CR>";
|
||||
silent = cfg.keymapsSilent;
|
||||
};
|
||||
})
|
||||
// (optionalAttrs (bwipeout != null)
|
||||
{
|
||||
${bwipeout} = {
|
||||
}
|
||||
)
|
||||
++ (
|
||||
optional
|
||||
(bwipeout != null)
|
||||
{
|
||||
key = bwipeout;
|
||||
action = ":Bwipeout<CR>";
|
||||
silent = cfg.keymapsSilent;
|
||||
};
|
||||
});
|
||||
}
|
||||
)
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue