mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-27 19:18:57 +02:00
plugins/leap: allow __empty for safeLabels option
This commit is contained in:
parent
41794c222a
commit
451beb4eca
2 changed files with 21 additions and 9 deletions
|
@ -84,17 +84,20 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
safeLabels = helpers.defaultNullOpts.mkListOf types.str (stringToCharacters "sfnut/SFNLHMUGT?Z") ''
|
||||
When the number of matches does not exceed the number of these "safe" labels plus one, the
|
||||
plugin jumps to the first match automatically after entering the pattern.
|
||||
Obviously, for this purpose you should choose keys that are unlikely to be used right
|
||||
after a jump!
|
||||
safeLabels =
|
||||
helpers.defaultNullOpts.mkNullable (with helpers.nixvimTypes; maybeRaw (listOf str))
|
||||
(stringToCharacters "sfnut/SFNLHMUGT?Z")
|
||||
''
|
||||
When the number of matches does not exceed the number of these "safe" labels plus one, the
|
||||
plugin jumps to the first match automatically after entering the pattern.
|
||||
Obviously, for this purpose you should choose keys that are unlikely to be used right
|
||||
after a jump!
|
||||
|
||||
Setting the list to `[]` effectively disables the autojump feature.
|
||||
Setting the list to `[]` effectively disables the autojump feature.
|
||||
|
||||
Note: Operator-pending mode ignores this, since we need to be able to select the actual
|
||||
target before executing the operation.
|
||||
'';
|
||||
Note: Operator-pending mode ignores this, since we need to be able to select the actual
|
||||
target before executing the operation.
|
||||
'';
|
||||
|
||||
labels =
|
||||
helpers.defaultNullOpts.mkListOf types.str
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue