Skip to content

Commit 0b0986b

Browse files
committed
Replace diff-so-fancy by delta
https://github.com/dandavison/delta
1 parent 6cad6b5 commit 0b0986b

File tree

2 files changed

+65
-1
lines changed

2 files changed

+65
-1
lines changed

.gitconfig

+64
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@
7070
# Detect copies as well as renames.
7171
renames = copies
7272

73+
[diff]
74+
75+
# Detect moved blocks of code and style them differently
76+
colorMoved = default
77+
7378
[diff "bin"]
7479

7580
# Use `hexdump` to diff binary files.
@@ -111,3 +116,62 @@
111116
[init]
112117

113118
defaultBranch = main
119+
120+
[pager]
121+
diff = delta
122+
log = delta
123+
reflog = delta
124+
show = delta
125+
126+
[interactive]
127+
diffFilter = delta --diff-so-fancy
128+
129+
[delta]
130+
features = diff-so-fancy
131+
syntax-theme = Dracula
132+
whitespace-error-style = 22 reverse
133+
134+
[delta "decorations"]
135+
commit-decoration-style = bold yellow box ul
136+
file-style = bold yellow ul
137+
file-decoration-style = none
138+
139+
[delta "diff-so-fancy"]
140+
commit-style = bold yellow
141+
file-style = bold yellow
142+
hunk-header-style = bold purple
143+
minus-style = red
144+
minus-non-emph-style = red
145+
minus-emph-style = bold red 52
146+
minus-empty-line-marker-style = normal "#3f0001"
147+
zero-style = normal
148+
plus-style = green
149+
plus-non-emph-style = green
150+
plus-emph-style = bold green 22
151+
plus-empty-line-marker-style = normal "#002800"
152+
whitespace-error-style = reverse 22
153+
true-color = true
154+
file-added-label = 'added:'
155+
file-modified-label = ''
156+
file-removed-label = 'removed:'
157+
file-renamed-label = 'renamed:'
158+
hyperlinks = false
159+
inspect-raw-lines = true
160+
keep-plus-minus-markers = false
161+
line-numbers = true
162+
line-numbers-minus-style = 88
163+
line-numbers-zero-style = "#444444"
164+
line-numbers-plus-style = 28
165+
line-numbers-left-style = blue
166+
line-numbers-right-style = blue
167+
line-numbers-left-format = '{nm:^4}⋮'
168+
line-numbers-right-format = '{np:^4}│'
169+
max-line-distance = 0.6
170+
max-line-length = 512
171+
navigate = false
172+
navigate-regexp =
173+
paging = auto
174+
side-by-side = false
175+
syntax-theme = Dracula
176+
width = 95
177+
tabs = 4

brew.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ brew install php
4747
brew install gmp
4848

4949
# Install other useful binaries.
50-
brew install diff-so-fancy
5150
brew install exa
5251
brew install git
52+
brew install git-delta
5353
brew install jrnl
5454
brew install grc
5555
brew install gs

0 commit comments

Comments
 (0)