feat(gitconfig): nvdimdiff > vimdiff
This commit is contained in:
parent
b7d0087156
commit
2cc7a82586
1 changed files with 11 additions and 1 deletions
|
|
@ -13,7 +13,9 @@
|
||||||
helper = cache --timeout=604800
|
helper = cache --timeout=604800
|
||||||
|
|
||||||
[diff]
|
[diff]
|
||||||
tool = vimdiff
|
tool = nvimdiff
|
||||||
|
[difftool "nvimdiff"]
|
||||||
|
cmd = "nvim -d \"$LOCAL\" \"$REMOTE\""
|
||||||
|
|
||||||
[http]
|
[http]
|
||||||
postBuffer = 524288000
|
postBuffer = 524288000
|
||||||
|
|
@ -25,8 +27,16 @@
|
||||||
[init]
|
[init]
|
||||||
defaultBranch = main
|
defaultBranch = main
|
||||||
[merge]
|
[merge]
|
||||||
|
tool = "nvim"
|
||||||
conflictstyle = diff3
|
conflictstyle = diff3
|
||||||
|
|
||||||
|
[mergetool]
|
||||||
|
keepBackup = false
|
||||||
|
prompt = true
|
||||||
|
|
||||||
|
[mergetool "nvim"]
|
||||||
|
cmd = "nvim -d -c \"wincmd l\" -c \"norm ]c\" \"$LOCAL\" \"$MERGED\" \"$REMOTE\""
|
||||||
|
|
||||||
# Set a correct user.name and user.email for work projects
|
# Set a correct user.name and user.email for work projects
|
||||||
[includeIf "gitdir:~/git/work/"]
|
[includeIf "gitdir:~/git/work/"]
|
||||||
path = ~/git/work/gitconfig
|
path = ~/git/work/gitconfig
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue