diff --git a/modules/basic/config.nix b/modules/basic/config.nix index d510505..6e4237c 100644 --- a/modules/basic/config.nix +++ b/modules/basic/config.nix @@ -142,6 +142,9 @@ in { set spell set spelllang=${toString cfg.spellChecking.language} ''} + ${optionalString (cfg.leaderKey != null) '' + let mapleader = "${toString cfg.leaderKey}" + ''} ''; }; } diff --git a/modules/basic/module.nix b/modules/basic/module.nix index ade7d10..3f8e49a 100644 --- a/modules/basic/module.nix +++ b/modules/basic/module.nix @@ -31,6 +31,12 @@ with builtins; { }; }; + leaderKey = mkOption { + type = with types; nullOr str; + default = null; + description = "The leader key to be used internally"; + }; + colourTerm = mkOption { type = types.bool; default = true;