git delta pager

main
Alpha Chen 2 years ago
parent 564b9762a7
commit 447f9fffcd
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -7,6 +7,7 @@
quotepath = false quotepath = false
sparecheckout = true sparecheckout = true
editor = nvim editor = nvim
pager = delta
[alias] [alias]
g = grep --break --heading --line-number g = grep --break --heading --line-number
standup = !git log --all --date=short --no-merges --pretty=format:\"%h %ad %s%d\" --since=1.weeks --author=`git config user.email` standup = !git log --all --date=short --no-merges --pretty=format:\"%h %ad %s%d\" --since=1.weeks --author=`git config user.email`
@ -58,9 +59,9 @@
[diff] [diff]
algorithm = histogram algorithm = histogram
external = difft external = difft
tool = difftastic
; compactionHeuristic = true ; compactionHeuristic = true
indentHeuristic = true indentHeuristic = true
colorMoved = default
[fetch] [fetch]
prune = true prune = true
[tag] [tag]
@ -71,6 +72,7 @@
updateRefs = true updateRefs = true
[interactive] [interactive]
singlekey = true singlekey = true
diffFilter = delta --color-only --features=interactive
[url "git@github.com:"] [url "git@github.com:"]
insteadof = https://github.com/ insteadof = https://github.com/
[url "git@git.kejadlen.dev:"] [url "git@git.kejadlen.dev:"]
@ -106,5 +108,13 @@
format = ssh format = ssh
[gpg "ssh"] [gpg "ssh"]
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign" program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
[delta]
features = decorations
navigate = true
line-numbers = true
side-by-side = true
line-numbers-right-format = "│ "
[delta "decorations"]
hunk-header-style = omit
[include] [include]
path = ~/.gitconfig.local path = ~/.gitconfig.local

Loading…
Cancel
Save