Add home/laozi/common/core/bat.nix
This commit is contained in:
parent
ddfe750fb8
commit
8908e8bee0
|
@ -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
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue