mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-28 03:20:08 +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,7 +84,10 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
safeLabels = helpers.defaultNullOpts.mkListOf types.str (stringToCharacters "sfnut/SFNLHMUGT?Z") ''
|
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
|
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.
|
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
|
Obviously, for this purpose you should choose keys that are unlikely to be used right
|
||||||
|
|
|
@ -3,6 +3,15 @@
|
||||||
plugins.leap.enable = true;
|
plugins.leap.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# https://github.com/nix-community/nixvim/issues/1698
|
||||||
|
autojump-disabled = {
|
||||||
|
plugins.leap = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
safeLabels.__empty = null;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
example = {
|
example = {
|
||||||
plugins.leap = {
|
plugins.leap = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue