nvim: Improve jj diff conflict resolution
Currently invoked via `jj resolve --tool diffconflicts`
This commit is contained in:
parent
57a7149807
commit
9afb34fd26
3 changed files with 27 additions and 3 deletions
|
|
@ -13,6 +13,17 @@ private-commits = "description(glob-i:'WIP:*') | description(glob-i:'PRIVATE:*')
|
|||
[ui]
|
||||
default-command = ["log", "-T", "builtin_log_oneline", "-r", "stack()"]
|
||||
diff-editor = ["nvim", "-c", "DiffEditor $left $right $output"]
|
||||
diff-instructions = false # don't add the JJ-INSTRUCTIONS file to diffs
|
||||
merge-editor = "dc"
|
||||
|
||||
[merge-tools.dc] # the 'diffconflicts' plugin for nvim
|
||||
program = "nvim"
|
||||
merge-args = [
|
||||
"-c", "let g:jj_diffconflicts_marker_length=$marker_length",
|
||||
"-c", "let g:jj_diffconflicts_turn_off_instructions=1",
|
||||
"-c", "JJDiffConflicts!", "$output", "$base", "$left", "$right"
|
||||
]
|
||||
merge-tool-edits-conflict-markers = true
|
||||
|
||||
# use delta as formatter but _only_ for diff and show
|
||||
# see: https://github.com/jj-vcs/jj/discussions/4690#discussioncomment-12388965
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue