From 93cdb13eada4e803fb4db71fb581d9e4a03d2119 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 3 Nov 2021 20:38:08 +0300 Subject: git, lowe: migrate from diff-so-fancy to delta --- .gitconfig##h.lowe | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/.gitconfig##h.lowe b/.gitconfig##h.lowe index d0026b7..4e44bee 100644 --- a/.gitconfig##h.lowe +++ b/.gitconfig##h.lowe @@ -5,7 +5,6 @@ [core] autocrlf = input safecrlf = true - pager = diff-so-fancy | less --tabs=4 -RFX excludesfile = ~/.cvsignore [alias] co = checkout @@ -23,18 +22,6 @@ helper = cache --timeout=3600 [color] ui = true -[color "diff-highlight"] - oldNormal = red bold - oldHighlight = red bold 52 - newNormal = green bold - newHighlight = green bold 22 -[color "diff"] - meta = yellow - frag = magenta bold - commit = yellow bold - old = red bold - new = green bold - whitespace = red reverse [commit] gpgsign = true [sendemail] @@ -45,3 +32,24 @@ ff = only [init] defaultBranch = main +[pager] + diff = delta + log = delta + reflog = delta + show = delta +[interactive] + diffFilter = delta --color-only +[delta] + features = line-numbers decorations side-by-side + plus-style = syntax "#003800" + minus-style = syntax "#3f0001" +[delta "decorations"] + commit-decoration-style = bold yellow box ul + file-style = bold yellow ul + file-decoration-style = none + hunk-header-decoration-style = cyan box ul +[delta "line-numbers"] + line-numbers-left-style = cyan + line-numbers-right-style = cyan + line-numbers-minus-style = 124 + line-numbers-plus-style = 28 -- cgit v1.2.3-70-g09d2