diff --git a/lib/keymap-helpers.nix b/lib/keymap-helpers.nix index 98395c29..34dd1769 100644 --- a/lib/keymap-helpers.nix +++ b/lib/keymap-helpers.nix @@ -83,7 +83,6 @@ in rec { defaultMode ? "", withKeyOpt ? true, flatConfig ? false, - actionIsOptional ? false, }: with types; either @@ -113,14 +112,10 @@ in rec { example = ["n" "v"]; }; - action = - if actionIsOptional - then helpers.mkNullOrOption str "The action to execute" - else - mkOption { - type = str; - description = "The action to execute."; - }; + action = mkOption { + type = str; + description = "The action to execute."; + }; lua = mkOption { type = bool; diff --git a/modules/keymaps.nix b/modules/keymaps.nix index 2577f4b2..e4cf8aff 100644 --- a/modules/keymaps.nix +++ b/modules/keymaps.nix @@ -26,7 +26,6 @@ in { defaultMode = modeProps.short; withKeyOpt = false; flatConfig = true; - actionIsOptional = config.plugins.which-key.enable; } ) ); @@ -38,9 +37,7 @@ in { keymaps = mkOption { type = types.listOf - (helpers.keymaps.mkMapOptionSubmodule { - actionIsOptional = config.plugins.which-key.enable; - }); + (helpers.keymaps.mkMapOptionSubmodule {}); default = []; example = [ {