[nix] Use delta as a git pager (ht to @moonglum)

This commit is contained in:
Sebastian Schulze 2022-06-07 14:27:06 +02:00
parent ce676bbeb6
commit 34138abfe1
No known key found for this signature in database
GPG Key ID: F6BA63C6A7D3044E
2 changed files with 16 additions and 0 deletions

View File

@ -63,6 +63,7 @@ in
unstable.pkgs.darktable
unstable.pkgs.foot
unstable.pkgs.qutebrowser
pkgs.delta
pkgs.any-nix-shell
pkgs.socat
pkgs.age
@ -419,6 +420,7 @@ in
services.mbsync.enable = true;
services.gnome-keyring.enable = true;
services.nextcloud-client.enable = true;
services.emacs.enable = true;
programs.emacs = {

View File

@ -7,10 +7,24 @@
excludesfile = ~/.gitignore
editor = em -nw
hooksPath = ~/.config/git/hooks
pager = delta
[commit]
gpgsign = true
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
light = false
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
[alias]
lol= 'log' '--oneline' '--graph' '--decorate'
lg1 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative