diff options
| author | Trevor Opiyo <driest.gravels_0j@icloud.com> | 2024-11-05 08:16:35 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-05 08:16:35 -0600 |
| commit | 897fc37c47d2592c475f8732f3f1a4fbc9f18f9e (patch) | |
| tree | 8547c11707db137b95636ced55e964c292b99047 | |
| parent | 44c88484c4c386f3eae8a5398e9b22a78d606e43 (diff) | |
Update default.nix
Co-authored-by: Michael Hoang <Enzime@users.noreply.github.com>
| -rw-r--r-- | modules/programs/zsh/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/programs/zsh/default.nix b/modules/programs/zsh/default.nix index d3b2f5c..6555bac 100644 --- a/modules/programs/zsh/default.nix +++ b/modules/programs/zsh/default.nix @@ -117,8 +117,11 @@ 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." + assertions = [ + { + assertion = !(cfg.enableSyntaxHighlighting && cfg.enableFastSyntaxHighlighting); + message = "zsh-syntax-highlighting and zsh-fast-syntax-highlighting are mutually exclusive, please disable one of them."; + } ]; environment.systemPackages = [ # Include zsh package |
