Skip to content

Conversation

@esmuellert
Copy link
Owner

Summary

  • Add new conflict_ours_position config option to control the position of OURS (:2) buffer in merge conflict views
  • This setting is independent of the existing original_position setting, allowing separate customization for normal diff and conflict modes

Changes

  • lua/codediff/config.lua: Add conflict_ours_position option (default: "right")
  • lua/codediff/commands.lua: Use conflict_ours_position in vscode_merge() function
  • lua/codediff/ui/explorer/render.lua: Use conflict_ours_position in explorer mode conflict handling
  • lua/codediff/ui/view/conflict_window.lua: Add comments explaining rightbelow behavior, use rightbelow=false for consistent LEFT/RIGHT window arrangement
  • README.md: Document the new option

Benefits

  • Users can now customize which side shows their changes (OURS) vs incoming changes (THEIRS) during merge conflict resolution
  • Independent from original_position, giving more flexibility in workflow preferences

Testing

  • All 194 tests pass
  • Manually verified in interactive Neovim with merge conflict scenario

Add new config option to control the position of OURS (:2) buffer in
merge conflict views, independent of the original_position setting.

Changes:
- Add conflict_ours_position option (default: "right") to config
- Update commands.lua and render.lua to use the new option
- Add comments to conflict_window.lua explaining rightbelow behavior
- Document the option in README.md

This allows users to customize which side shows their changes (OURS)
vs incoming changes (THEIRS) during merge conflict resolution.
@esmuellert esmuellert enabled auto-merge January 11, 2026 08:29
@esmuellert esmuellert merged commit 4de3b10 into main Jan 11, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants