From ae2998c33392640b84d63e2aec883c09ab50e148 Mon Sep 17 00:00:00 2001 From: Tobias Schmidl Date: Mon, 13 Nov 2023 11:38:47 +0100 Subject: [PATCH] gitconfig: switched to delta as pager --- .config/gitconfig | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.config/gitconfig b/.config/gitconfig index 2046852..75c0d8c 100644 --- a/.config/gitconfig +++ b/.config/gitconfig @@ -7,10 +7,24 @@ [core] autocrlf = input excludesfile = ~/.config/gitignore - pager = less -F -X + pager = delta whitespace = tabwidth=4 [credential] helper = store +[delta] + features = decorations +[delta "interactive"] + keep-plus-minus-markers = false +[delta "decorations"] + commit-decoration-style = blue ol + commit-style = raw + file-style = omit + hunk-header-decoration-style = blue box + hunk-header-file-style = red + hunk-header-line-number-style = "#067a00" + hunk-header-style = file line-number syntax + navigate = true + side-by-side = true [diff] algorithm = histogram renamelimit = 65536 @@ -30,16 +44,14 @@ [http] sslverify = true sslversion = tlsv1.3 +[interactive] + diffFilter = delta --color-only --features=interactive [merge] conflictstyle = diff3 renormalize = true tool = vimdiff [pack] threads = 0 -[pager] - diff = diffr | less -FRX - log = diffr | less -FRX - show = diffr | less -FRX [pull] rebase = true [rebase]