lib/keymap-helpers (mapConfigOptions): use mkNullOrStr for desc

This commit is contained in:
Gaetan Lepage 2025-03-26 01:20:13 +01:00
parent dbec7ff2eb
commit fe95b14d52

View file

@ -1,7 +1,7 @@
{ lib }:
let
inherit (lib) optionalAttrs isAttrs types;
inherit (lib.nixvim) defaultNullOpts;
inherit (lib.nixvim) defaultNullOpts mkNullOrStr;
in
rec {
# These are the configuration options that change the behavior of each mapping.
@ -20,7 +20,7 @@ rec {
remap = defaultNullOpts.mkBool false "Make the mapping recursive. Inverses `noremap`.";
desc = lib.nixvim.mkNullOrOption lib.types.str "A textual description of this keybind, to be shown in which-key, if you have it.";
desc = mkNullOrStr "A textual description of this keybind, to be shown in which-key, if you have it.";
buffer = defaultNullOpts.mkBool false "Make the mapping buffer-local. Equivalent to adding `<buffer>` to a map.";
};