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;
|
action = action;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
inherit (action) silent expr unique noremap script nowait;
|
inherit (action) silent expr unique noremap script nowait remap;
|
||||||
action =
|
action =
|
||||||
if action.lua
|
if action.lua
|
||||||
then mkRaw action.action
|
then mkRaw action.action
|
||||||
|
@ -68,7 +68,7 @@ with lib; rec {
|
||||||
(key: action: {
|
(key: action: {
|
||||||
action = action.action;
|
action = action.action;
|
||||||
config = lib.filterAttrs (_: v: v) {
|
config = lib.filterAttrs (_: v: v) {
|
||||||
inherit (action) silent expr unique noremap script nowait;
|
inherit (action) silent expr unique noremap script nowait remap;
|
||||||
};
|
};
|
||||||
key = key;
|
key = key;
|
||||||
mode = mode;
|
mode = mode;
|
||||||
|
|
|
@ -46,6 +46,12 @@ with lib; let
|
||||||
default = true;
|
default = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
remap = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
description = "Make the mapping recursive. Inverses \"noremap\"";
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
|
||||||
action = mkOption {
|
action = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
description = "The action to execute.";
|
description = "The action to execute.";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue