Skip to content

Commit fe95b14

Browse files
committed
lib/keymap-helpers (mapConfigOptions): use mkNullOrStr for desc
1 parent dbec7ff commit fe95b14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/keymap-helpers.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ lib }:
22
let
33
inherit (lib) optionalAttrs isAttrs types;
4-
inherit (lib.nixvim) defaultNullOpts;
4+
inherit (lib.nixvim) defaultNullOpts mkNullOrStr;
55
in
66
rec {
77
# These are the configuration options that change the behavior of each mapping.
@@ -20,7 +20,7 @@ rec {
2020

2121
remap = defaultNullOpts.mkBool false "Make the mapping recursive. Inverses `noremap`.";
2222

23-
desc = lib.nixvim.mkNullOrOption lib.types.str "A textual description of this keybind, to be shown in which-key, if you have it.";
23+
desc = mkNullOrStr "A textual description of this keybind, to be shown in which-key, if you have it.";
2424

2525
buffer = defaultNullOpts.mkBool false "Make the mapping buffer-local. Equivalent to adding `<buffer>` to a map.";
2626
};

0 commit comments

Comments
 (0)