From fe95b14d5229a2fa90bebd79b2058388bb68d072 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 26 Mar 2025 01:20:13 +0100 Subject: [PATCH] lib/keymap-helpers (mapConfigOptions): use mkNullOrStr for desc --- lib/keymap-helpers.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/keymap-helpers.nix b/lib/keymap-helpers.nix index c9994666..10567db1 100644 --- a/lib/keymap-helpers.nix +++ b/lib/keymap-helpers.nix @@ -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 `` to a map."; };