Skip to content

Commit

Permalink
fix(home-manager): add file for yazi syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelBelsanti committed Apr 16, 2024
1 parent a771482 commit 2a5f99d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/home-manager/yazi.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ in
ctp.mkCatppuccinOpt "yazi";

config = lib.mkIf enable {
assertions = [
(lib.ctp.assertXdgEnabled "yazi")
];

programs.yazi.theme = lib.importTOML "${sources.yazi}/themes/${cfg.flavour}.toml";
xdg.configFile."yazi/Catppuccin-${cfg.flavour}.tmTheme".source = "${sources.bat}/themes/Catppuccin ${ctp.mkUpper cfg.flavour}.tmTheme";
};
}

0 comments on commit 2a5f99d

Please sign in to comment.