fix(home-manager): add file for yazi syntax highlighting (#119)

This commit is contained in:
quasigod 2024-04-16 23:12:20 -04:00 committed by GitHub
parent d2f4a13bd9
commit e69bd64bac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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";
};
}