4: Removed manual Yazi Fish function declaration, fixed wrong way of adding Bat themes, added all Catppuccin themes for Bat, and configured Bat to use Catppuccin Mocha

This commit is contained in:
uzy lol 2024-12-20 17:29:31 -08:00
parent 3d67b0862d
commit 327115f648
4 changed files with 6195 additions and 14 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -12,16 +12,6 @@
functions = { functions = {
gitignore = "touch .gitignore && curl -sL https://www.gitignore.io/api/$argv >> .gitignore"; gitignore = "touch .gitignore && curl -sL https://www.gitignore.io/api/$argv >> .gitignore";
finit = "nix flake init --template \"https://flakehub.com/f/the-nix-way/dev-templates/*#$argv\""; finit = "nix flake init --template \"https://flakehub.com/f/the-nix-way/dev-templates/*#$argv\"";
y = ''
function y
set tmp (mktemp -t "yazi-cwd.XXXXXX")
yazi $argv --cwd-file="$tmp"
if set cwd (command cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
builtin cd -- "$cwd"
end
rm -f -- "$tmp"
end
'';
}; };
generateCompletions = true; generateCompletions = true;
@ -85,17 +75,31 @@
programs.yazi = { programs.yazi = {
enable = true; enable = true;
enableFishIntegration = true; enableFishIntegration = true;
shellWrapperName = "y";
}; };
programs.bat = { programs.bat = {
enable = true; enable = true;
enableFishIntegration = true;
themes = { themes = {
catppuccin = { CatppuccinMocha = {
src = builtins.readFile ./batThemes/CatppuccinMocha.tmTheme; src = ./batThemes;
file = "CatppuccinMocha.tmTheme"; file = "CatppuccinMocha.tmTheme";
}; };
CatppuccinFrappe = {
src = ./batThemes;
file = "CatppuccinFrappe.tmTheme";
};
CatppuccinLatte = {
src = ./batThemes;
file = "CatppuccinLatte.tmTheme";
};
CatppuccinMacchiato = {
src = ./batThemes;
file = "CatppuccinMacchiato.tmTheme";
};
};
config = {
theme = "CatppuccinMocha";
}; };
}; };