-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
97 lines (97 loc) · 2.83 KB
/
.gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# This is Git's per-user configuration file.
[user]
name = Allen Pan
email = [email protected]
[core]
excludesfile = $HOME/.gitignore_global
pager = delta
[pager]
# Custom delta theme for actions
# delta will automatically bypass if the
diff = delta --features delta-diff
blame = delta --features delta-blame
log = delta --features delta-log
[alias]
mt = mergetool
logp = log -p
[delta]
features = delta-general
[delta "delta-general"]
# General appearance
dark = true
# Nord is the most non-intrusive, good for diff
syntax-theme = Nord
# Functionality
navigate = true
hyperlinks = false
# File line
file-added-label = [+]
file-copied-label = [==]
file-modified-label = [*]
file-removed-label = [-]
file-renamed-label = [->]
file-style = blue bold
file-decoration-style = blue box
# Commit
commit-decoration-style = yellow bold ol
# Hunk header
; hunk-header-style = file line-number syntax bold italic
hunk-header-style = omit
hunk-header-decoration-style = bright-yellow
hunk-header-file-style = yellow
hunk-header-line-number-style = bright-yellow
# Diff
zero-style = syntax normal
plus-style = syntax "#033a16"
minus-style = syntax "#67060c"
plus-emph-style = black "#25be6a"
minus-emph-style = black "#ee5396"
keep-plus-minus-markers = false
# Line numbers
line-numbers = true
line-numbers-minus-style = brightred
line-numbers-plus-style = brightgreen
line-numbers-left-style = "#5e81ac"
line-numbers-right-style = "#5e81ac"
line-numbers-zero-style = "#4C566A"
line-numbers-left-format = "{nm:>4}⋮"
line-numbers-right-format = "{np:>4}│"
# Color moved
map-styles = \
bold purple => syntax "#171531", \
bold blue => syntax "#271344", \
bold cyan => syntax "#0d3531", \
bold yellow => syntax "#222f14"
[delta "delta-diff"]
features = delta-general
side-by-side = true
line-numbers-left-format = "│{nm:>4}│"
line-numbers-right-format = "│{np:>4}│"
[delta "delta-blame"]
syntax-theme = Dracula
blame-code-style = syntax
blame-format = "{author:<18} ({commit:>7}) {timestamp:<13}"
blame-palette = "#2E3440" "#3B4252" "#434C5E" "#4C566A"
[delta "delta-log"]
features = delta-general
side-by-side = true
line-numbers-left-format = "{nm:>4}│"
line-numbers-right-format = "{np:>4}│"
# the idea is to overload the pager used by delta when using git log
# using ov section feature brings a better experience
; pager=ov -F --section-delimiter '^commit' --section-header-num 4 --section-start -1
[diff]
colorMoved = default
[merge]
tool = diffview
conflictstyle = diff3
[mergetool]
prompt = false
keepBackup = false
[mergetool "diffview"]
cmd = nvim -n -c "DiffviewOpen" "$MERGE"
; [https "https://github.com"]
; proxy = socks5://127.0.0.1:1086
[submodule]
# Automatically update submodules in pull
recurse = true