fix: make conflict keymaps opt-in #224
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/diffs.nvim!224
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/opt-in-conflict-keymaps"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Issue #223 reports that conflict resolution mappings can show up in unwanted situations, including clobbering core motions like
ctand diff-style navigation keys. The current conflict support installs default buffer-local mappings in normal worktree buffers and can leave those mappings behind after conflict markers are resolved.Solution
Make conflict and merge keymaps opt-in by default, keep the
<Plug>targets as the manual mapping surface, and clear any installed buffer-local mappings when conflict state ends or a buffer detaches. Update the docs to describe the opt-in policy and add specs that cover keymap installation, cleanup on detach/resolve, reinstallation when conflicts return, and merge-hint behavior without configured keymaps.Closes #223.