From a437dbd158c78c4471bfab08f74303d318efc668 Mon Sep 17 00:00:00 2001 From: diniamo Date: Wed, 12 Jun 2024 01:24:03 +0200 Subject: [PATCH] which-key: allow null in registers --- modules/plugins/utility/binds/which-key/which-key.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/plugins/utility/binds/which-key/which-key.nix b/modules/plugins/utility/binds/which-key/which-key.nix index 796dc8e..feb8d76 100644 --- a/modules/plugins/utility/binds/which-key/which-key.nix +++ b/modules/plugins/utility/binds/which-key/which-key.nix @@ -4,14 +4,14 @@ ... }: let inherit (lib.options) mkEnableOption mkOption; - inherit (lib.types) attrsOf str; + inherit (lib.types) attrsOf nullOr str; in { options.vim.binds.whichKey = { enable = mkEnableOption "which-key keybind helper menu"; register = mkOption { description = "Register label for which-key keybind helper menu"; - type = attrsOf str; + type = attrsOf (nullOr str); default = {}; }; };