mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
maps: Add the remap option (#256)
This commit is contained in:
parent
45bd82602e
commit
b3ca52110f
2 changed files with 8 additions and 2 deletions
|
@ -56,7 +56,7 @@ with lib; rec {
|
|||
action = action;
|
||||
}
|
||||
else {
|
||||
inherit (action) silent expr unique noremap script nowait;
|
||||
inherit (action) silent expr unique noremap script nowait remap;
|
||||
action =
|
||||
if action.lua
|
||||
then mkRaw action.action
|
||||
|
@ -68,7 +68,7 @@ with lib; rec {
|
|||
(key: action: {
|
||||
action = action.action;
|
||||
config = lib.filterAttrs (_: v: v) {
|
||||
inherit (action) silent expr unique noremap script nowait;
|
||||
inherit (action) silent expr unique noremap script nowait remap;
|
||||
};
|
||||
key = key;
|
||||
mode = mode;
|
||||
|
|
|
@ -46,6 +46,12 @@ with lib; let
|
|||
default = true;
|
||||
};
|
||||
|
||||
remap = mkOption {
|
||||
type = types.bool;
|
||||
description = "Make the mapping recursive. Inverses \"noremap\"";
|
||||
default = false;
|
||||
};
|
||||
|
||||
action = mkOption {
|
||||
type = types.str;
|
||||
description = "The action to execute.";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue