Skip to content

fix(components): render conflict icon for files with git conflicts - #2012

Merged
pynappo merged 2 commits into
nvim-neo-tree:mainfrom
Rajil1213:fix/conflict-file-git-status-icon
Apr 11, 2026
Merged

pynappo merged 2 commits into
nvim-neo-tree:mainfrom
Rajil1213:fix/conflict-file-git-status-icon

Conversation

@Rajil1213

Copy link
Copy Markdown
Contributor

Currently, when there is a git merge or rebase conflict in a file, neo-tree renders two modified symbols instead of one modified and one conflict symbol. This happens because the renderer detects the conflict, but does not carry that information forward into the later rendering logic. As a result, the normal worktree-side component is still rendered, which produces the duplicate modified symbol. The first commit in this PR adds a regression test to expose this issue. The fix in the second commit is to set is_conflict to true and only render the normal y component when there is no conflict.

@Rajil1213 Rajil1213 changed the title Render conflict icon for files with git conflicts fix(common): render conflict icon for files with git conflicts Apr 10, 2026
@Rajil1213 Rajil1213 changed the title fix(common): render conflict icon for files with git conflicts fix(components): render conflict icon for files with git conflicts Apr 10, 2026
@pynappo
pynappo merged commit aa3500f into nvim-neo-tree:main Apr 11, 2026
19 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