diff options
| author | Trevor Opiyo <trevoropiyo@trevoropiyo.com> | 2024-05-29 12:23:59 -0500 |
|---|---|---|
| committer | Trevor Opiyo <trevoropiyo@trevoropiyo.com> | 2024-05-29 12:24:11 -0500 |
| commit | 44c88484c4c386f3eae8a5398e9b22a78d606e43 (patch) | |
| tree | 4665327f711a05344e867bf13a5471bb78cfaa3d /modules/programs | |
| parent | 2839ef54aaaa0ca797659a1db45876260b93b1eb (diff) | |
add warning for enabling syntax highlighting and fast syntax highlighting
Diffstat (limited to 'modules/programs')
| -rw-r--r-- | modules/programs/zsh/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/programs/zsh/default.nix b/modules/programs/zsh/default.nix index c7ff47c..d3b2f5c 100644 --- a/modules/programs/zsh/default.nix +++ b/modules/programs/zsh/default.nix @@ -117,6 +117,9 @@ in config = mkIf cfg.enable { + warnings = mkIf (cfg.enableFastSyntaxHighlighting && cfg.enableSyntaxHighlighting) [ + "zsh-fast-syntax-highlighting and zsh-syntax-highlighting are mutually exclusive. Disable one of them." + ]; environment.systemPackages = [ # Include zsh package pkgs.zsh |
