bug: phantom mappings #94

Closed
opened 2026-09-21 18:12:11 +00:00 by barrettruth · 2 comments
Owner

Original issue: barrettruth/diffs.nvim#223
Original author: justinmk
Original date: 2026-04-30T15:20:31Z

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
> Original issue: barrettruth/diffs.nvim#223 > Original author: `justinmk` > Original date: 2026-04-30T15:20:31Z ### 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 2026-09-21 18:12:11 +00:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

Original comment: barrettruth/diffs.nvim#223, comment 4354873361
Original author: barrettruth
Original date: 2026-04-30T17:56:32Z

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

> Original comment: barrettruth/diffs.nvim#223, comment 4354873361 > Original author: `barrettruth` > Original date: 2026-04-30T17:56:32Z looking at this now, ty. idk much about builtin mappings so i'm not surprised that i let this slip thru the cracks.
Author
Owner

Original comment: barrettruth/diffs.nvim#223, comment 4355337395
Original author: barrettruth
Original date: 2026-04-30T18:50:25Z

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

> Original comment: barrettruth/diffs.nvim#223, comment 4355337395 > Original author: `barrettruth` > Original date: 2026-04-30T18:50:25Z lmk if this does NOT work... @ me on this thread.
Sign in to join this conversation.
No milestone
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#94
No description provided.