plugins/leap: allow __empty for safeLabels option

This commit is contained in:
Gaetan Lepage 2024-07-06 00:34:58 +02:00 committed by Gaétan Lepage
parent 41794c222a
commit 451beb4eca
2 changed files with 21 additions and 9 deletions

View file

@ -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

View file

@ -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;