chore(git): add delta config
This commit is contained in:
parent
872fe09964
commit
04b4e6d5a1
1 changed files with 14 additions and 1 deletions
15
.gitconfig
15
.gitconfig
|
@ -9,7 +9,7 @@
|
||||||
smudge = git-lfs smudge -- %f
|
smudge = git-lfs smudge -- %f
|
||||||
[core]
|
[core]
|
||||||
autocrlf = input
|
autocrlf = input
|
||||||
pager = delta
|
pager = delta --features git
|
||||||
excludesFile = ~/.gitignore
|
excludesFile = ~/.gitignore
|
||||||
[interactive]
|
[interactive]
|
||||||
diffFilter = delta --color-only
|
diffFilter = delta --color-only
|
||||||
|
@ -33,3 +33,16 @@
|
||||||
count-lines = "! git log --author=\"$1\" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf \"added lines: %s, removed lines: %s, total lines: %s\\n\", add, subs, loc }' #"
|
count-lines = "! git log --author=\"$1\" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf \"added lines: %s, removed lines: %s, total lines: %s\\n\", add, subs, loc }' #"
|
||||||
[gpg "ssh"]
|
[gpg "ssh"]
|
||||||
allowedSignersFile = ~/.ssh/allowed_signers
|
allowedSignersFile = ~/.ssh/allowed_signers
|
||||||
|
[delta]
|
||||||
|
dark = true
|
||||||
|
line-numbers = true
|
||||||
|
hyperlinks = true
|
||||||
|
hyperlinks-file-link-format = "lazygit-edit://{path}:{line}"
|
||||||
|
true-color = always
|
||||||
|
[delta "git"]
|
||||||
|
pager = less
|
||||||
|
paging = always
|
||||||
|
[delta "lazygit"]
|
||||||
|
features = diff-so-fancy
|
||||||
|
hunk-header-style = omit
|
||||||
|
paging = never
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue