added a nix flake for building

This commit is contained in:
2026-01-07 21:18:38 +01:00
parent dcae9feac7
commit 5501162bf8
5 changed files with 204 additions and 11 deletions

View File

@@ -34,7 +34,8 @@ lazy_static! {
pub static ref THEME_SET: ThemeSet = {
let mut set = ThemeSet::load_defaults();
let theme_bytes = include_bytes!("../themes/Catppuccin-Macchiato.tmTheme");
// let theme_bytes = include_bytes!("../themes/Catppuccin-Macchiato.tmTheme");
let theme_bytes = include_bytes!(env!("THEME_FILE_PATH"));
let mut cursor = Cursor::new(theme_bytes);
match syntect::highlighting::ThemeSet::load_from_reader(&mut cursor) {