From ac66ae682da718b89bda6cfd5431e0b3f52df45d Mon Sep 17 00:00:00 2001 From: rydesun Date: Sat, 31 Jul 2021 22:56:22 +0800 Subject: [PATCH] Use delta as git diff --- .config/git/config | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.config/git/config b/.config/git/config index ce8c963..2c18795 100644 --- a/.config/git/config +++ b/.config/git/config @@ -28,3 +28,27 @@ helper = cache [url "https://github.com"] insteadOf = git://github.com + +[pager] + diff = delta + show = delta + log = delta + reflog = delta + +[interactive] + diffFilter = delta --color-only --features=interactive + +[delta] + features = decorations + +[delta "decorations"] + commit-decoration-style = bold yellow ul + file-style = bold yellow + file-decoration-style = yellow box + hunk-header-style = file line-number syntax + hunk-header-decoration-style = cyan box + hunk-header-file-style = cyan + hunk-header-line-number-style = yellow + +[delta "interactive"] + keep-plus-minus-markers = false