20 lines
604 B
Nix
20 lines
604 B
Nix
|
# 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
|
||
|
};
|
||
|
};
|
||
|
}
|