config/modules/shell/zsh/tools.nix
2024-05-03 13:33:06 -04:00

59 lines
1.2 KiB
Nix

{
pkgs,
lib,
...
}: {
programs = {
gpg.enable = true;
man.enable = true;
eza.enable = true;
dircolors = {
enable = true;
enableZshIntegration = true;
};
skim = {
enable = true;
enableZshIntegration = true;
defaultCommand = "rg --files --hidden";
changeDirWidgetOptions = [
"--preview 'eza --icons --git --color always -T -L 3 {} | head -200'"
"--exact"
];
};
direnv = {
enable = true;
nix-direnv.enable = true;
};
tealdeer = {
enable = true;
settings = {
display = {
compact = false;
use_pager = true;
};
updates = {
auto_update = true;
};
};
};
bat = {
enable = true;
config = {
pager = "less -FR";
theme = "catppuccin-frappe";
};
themes = {
catppuccin-frappe = {
src = pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "bat";
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
sha256 = "6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw=";
};
file = "Catppuccin-frappe.tmTheme";
};
};
};
};
}