git: Use delta as pager and diff tool

This commit is contained in:
Harzo 2023-05-28 16:13:48 +02:00
parent e64bca1b05
commit 0bfbcbe82b
2 changed files with 45 additions and 0 deletions

44
.config/git/config Normal file
View File

@ -0,0 +1,44 @@
[core]
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # use n and N to move between diff sections
light = false # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)
dark = true
line-numbers = true
hyperlinks = true
side-by-side = true
syntax-theme = Nord
keep-plus-minus-markers = false
file-style = "#8fbcbb" bold
file-decoration-style = "#8fbcbb" ul
file-added-label = [+]
file-copied-label = [==]
file-modified-label = [*]
file-removed-label = [-]
file-renamed-label = [->]
hunk-header-style = omit
line-numbers-left-format = " {nm:>3} │"
line-numbers-left-style = red
line-numbers-right-format = " {np:>3} │"
line-numbers-right-style = green
line-numbers-minus-style = red italic
line-numbers-plus-style = green italic
line-numbers-zero-style = "#434C5E" italic
minus-style = bold red darkred
minus-emph-style = bold black red
minus-non-emph-style = syntax black
plus-style = bold green darkgreen
plus-emph-style = bold black green
plus-non-emph-style = syntax black
zero-style = syntax
blame-code-style = syntax
[merge]
conflictstyle = diff3
[diff]
colorMoved = default

View File

@ -1,6 +1,7 @@
archlinux-themes-sddm archlinux-themes-sddm
as-tree as-tree
checkupdates-with-aur checkupdates-with-aur
delta
downgrade downgrade
grimblast-git grimblast-git
hyprland-nvidia-git hyprland-nvidia-git