feat(nvim): make modes a list for lazy keybinds
parent
abdb620c83
commit
4322977115
|
@ -26,7 +26,7 @@ let
|
||||||
);
|
);
|
||||||
descString = optionalString (desc != null) "desc = ${quote desc},";
|
descString = optionalString (desc != null) "desc = ${quote desc},";
|
||||||
in
|
in
|
||||||
''{ ${quote key}, ${cmdString}, mode = ${quote mode}, ${descString} }'';
|
''{ ${quote key}, ${cmdString}, mode = ${listToStringOneLine quote mode}, ${descString} }'';
|
||||||
lazySpecFromPlugin =
|
lazySpecFromPlugin =
|
||||||
{ plugin, dependencies, init, conf, lazy, event, enabled, cmd, ft, priority, keys }:
|
{ plugin, dependencies, init, conf, lazy, event, enabled, cmd, ft, priority, keys }:
|
||||||
listToStringMultiLine'
|
listToStringMultiLine'
|
||||||
|
@ -161,8 +161,8 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
mode = mkOption {
|
mode = mkOption {
|
||||||
type = str;
|
type = listOf str;
|
||||||
default = "n";
|
default = [ "n" ];
|
||||||
description = ''
|
description = ''
|
||||||
Mode to bind the key in.
|
Mode to bind the key in.
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in New Issue