maps: Add the remap option (#256)

This commit is contained in:
traxys 2023-03-14 23:44:14 +01:00 committed by GitHub
parent 45bd82602e
commit b3ca52110f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -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;

View file

@ -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.";