From 99c69b80d0d31cfeec93fd2e03b2dfa11578ee02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Sat, 20 Apr 2024 12:53:42 +0200 Subject: [PATCH] Configure git-delta --- git/gitconfig.j2 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/git/gitconfig.j2 b/git/gitconfig.j2 index e4f47e5..ff7d5d0 100644 --- a/git/gitconfig.j2 +++ b/git/gitconfig.j2 @@ -71,6 +71,9 @@ fileMode = true whitespace = "blank-at-eol,space-before-tab,blank-at-eof" abbrev = 8 + pager = delta +[interactive] + diffFilter = delta --color-only [color] ui = true [column] @@ -78,7 +81,7 @@ [push] default = simple [merge] - tool = vimdiff + conflictstyle = diff3 [gc] auto = 0 [advice] @@ -105,7 +108,6 @@ autoStash = true [diff] submodule = log - mnemonicPrefix = true renameLimit = 1199 [branch] autoSetupMerge = true @@ -124,3 +126,9 @@ directory = /var/lib/dotfiles [includeIf "gitdir:/var/lib/dotfiles"] path = /var/lib/dotfiles/gitcfg +[delta] + navigate = true # use n and N to move between diff sections + + # delta detects terminal colors automatically; set one of these to disable auto-detection + # dark = true + # light = true