Add home/laozi/common/core/bat.nix

This commit is contained in:
Matthieu Morin 2024-06-09 17:12:16 +00:00
parent ddfe750fb8
commit 8908e8bee0
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# https://github.com/sharkdp/bat
# https://github.com/eth-p/bat-extras
{ pkgs, ... }: {
programs.bat = {
enable = true;
config = {
# Show line numbers, Git modifications and file header (but no grid)
style = "numbers,changes,header";
theme = "gruvbox-dark";
};
extraPackages = builtins.attrValues {
inherit (pkgs.bat-extras)
batgrep# search through and highlight files using ripgrep
batdiff# Diff a file against the current git index, or display the diff between to files
batman; # read manpages using bat as the formatter
};
};
}