Simplify some color management

work
mat ess 2022-11-19 12:36:37 -05:00
parent 2698027002
commit 1e52b3a360
1 changed files with 2 additions and 20 deletions

View File

@ -17,6 +17,7 @@ in
enable = true; enable = true;
config = { config = {
style = "auto"; style = "auto";
theme = "base16-256";
}; };
}; };
# Direnv, load and unload environment variables depending on the current directory. # Direnv, load and unload environment variables depending on the current directory.
@ -26,30 +27,11 @@ in
enable = true; enable = true;
nix-direnv.enable = true; nix-direnv.enable = true;
}; };
# See `./shells.nix` for more on how this is used.
fish = {
functions = {
set-bat-colors = {
body = ''
if test "$term_background" = light
set -xg BAT_THEME "OneHalfLight"
else
set -xg BAT_THEME "OneHalfDark"
end
'';
onVariable = "term_background";
};
};
interactiveShellInit = ''
# Set `bat` colors based on value of `$term_backdround` when shell starts up.
set-bat-colors
'';
};
helix = { helix = {
enable = true; enable = true;
package = pkgs.helix-flake; package = pkgs.helix-flake;
settings = { settings = {
theme = "tokyonight"; theme = "base16_transparent";
editor.indent-guides.render = true; editor.indent-guides.render = true;
}; };
}; };