Skip to content

Commit

Permalink
Update modules/home-manager/zsh-syntax-highlighting.nix
Browse files Browse the repository at this point in the history
Co-authored-by: seth <[email protected]>
  • Loading branch information
XYenon and getchoo authored Apr 30, 2024
1 parent fd20696 commit aa65003
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/home-manager/zsh-syntax-highlighting.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ in
options.programs.zsh.syntaxHighlighting.catppuccin =
ctp.mkCatppuccinOpt "zsh syntax highlighting";

config.programs.zsh.initExtra = lib.mkIf enable (
lib.mkBefore ''
config.programs.zsh = lib.mkIf enable {
initExtra = lib.mkBefore ''
source '${sources.zsh-syntax-highlighting}/themes/catppuccin_${cfg.flavour}-zsh-syntax-highlighting.zsh'
''
);
'';
};
}

0 comments on commit aa65003

Please sign in to comment.