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