bug: phantom mappings #223

Closed
opened 2026-04-30 15:20:31 +00:00 by justinmk · 2 comments
justinmk commented 2026-04-30 15:20:31 +00:00

Prerequisites

Neovim version

NVIM v0.13.0-dev-353+gd40875a2f844

Operating system

macos

Description

mappings get defined in unwanted situations.

e.g. the ct mapping is definitely not wanted in a normal buffer, but sometimes shows up and breaks ct.

the quasi-standard ]c mappings (builtin, also used by fugitive and/or the stock vim/nvim diff mode) sometimes gets clobbered.

note: I often go in and out of vim-fugitive diff-mode and will close windows as needed. But it's customary to clean up with diff-mode plugins when the diff counterpart is closed. (But even if diff-mode, for the editable buffer, ct should not be defined, since that conflicts with a fundamental builtin.)

Steps to reproduce

(I don't have minimal repro yet but will update here later.)

Health check

diffs.nvim ~
- ✅ OK Neovim 0.9.0+ detected
- ✅ OK vim-fugitive detected
- libvscode_diff not found (optional, using native vim.diff fallback)

Minimal reproduction

todo
### Prerequisites - [x] I have searched [existing issues](https://github.com/barrettruth/diffs.nvim/issues) - [x] I have updated to the latest version ### Neovim version ```text NVIM v0.13.0-dev-353+gd40875a2f844 ``` ### Operating system macos ### Description mappings get defined in unwanted situations. e.g. the `ct` mapping is definitely not wanted in a normal buffer, but sometimes shows up and breaks `ct`. the quasi-standard `]c` mappings (builtin, also used by fugitive and/or the stock vim/nvim diff mode) sometimes gets clobbered. note: I often go in and out of vim-fugitive diff-mode and will close windows as needed. But it's customary to clean up with diff-mode plugins when the diff counterpart is closed. (But even if diff-mode, for the editable buffer, `ct` should not be defined, since that conflicts with a fundamental builtin.) ### Steps to reproduce (I don't have minimal repro yet but will update here later.) ### Health check ```text diffs.nvim ~ - ✅ OK Neovim 0.9.0+ detected - ✅ OK vim-fugitive detected - libvscode_diff not found (optional, using native vim.diff fallback) ``` ### Minimal reproduction ```lua todo ```
barrettruth commented 2026-04-30 17:56:32 +00:00

looking at this now, ty. idk much about builtin mappings so i'm not surprised that i let this slip thru the cracks.

looking at this now, ty. idk much about builtin mappings so i'm not surprised that i let this slip thru the cracks.
barrettruth commented 2026-04-30 18:50:25 +00:00

lmk if this does NOT work... @ me on this thread.

lmk if this does NOT work... @ me on this thread.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/diffs.nvim#223
No description provided.