Skip to content

feat(conflicts): display helper text as a virtual line - #440

Merged
tanvirtin merged 1 commit into
tanvirtin:mainfrom
alexandre-abrioux:conflict-virtual-line
Oct 11, 2026
Merged

tanvirtin merged 1 commit into
tanvirtin:mainfrom
alexandre-abrioux:conflict-virtual-line

Conversation

@alexandre-abrioux

@alexandre-abrioux alexandre-abrioux commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Render the conflict's "helper text" as a virtual line rather than hiding/replacing the buffer content, which often contains information that is quite valuable during conflict resolution.
image

Note: this might break for users of Neovim < v11 (when virtual lines were introduced). Let me know if you're OK with increasing the base requirements for this plugin (v11+ instead of v10+). Otherwise, I can try to implement a fallback logic.

@tanvirtin
tanvirtin merged commit 8a2ee56 into tanvirtin:main Oct 11, 2026
tanvirtin added a commit that referenced this pull request Oct 14, 2026
…e can share a row

Extmark:derive_id returned row + 1 for every kind, so a sign and a text (or a
text and a virt_line) placed on the same row overwrote each other, last write
wins. Give each kind its own id space, restoring main's collision-free scheme.

This is what #440 needs: render_conflict_help_text renders the conflict menu as
a virtual line above the conflict, which was silently clobbered by the
'(Current Change)' text and mark sign on the same row.
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