coder / coder/claudecode.nvim

[BUG] Incorrect diff colouring positioning when snacks_picker_list open

Open
#196 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
3.1k
Forks
217
PR merge metrics
No merged PRs in 30d

Description

Bug Description

Seems like snacks_list_picker is not being filtered out of the main window checks when a file is opened to display a diff.

To Reproduce

Steps to reproduce the behavior:

  1. Open nvim
  2. Toggle snacks file explorer
  3. Initiate a diff with claudecode.nvim on an unopened file
  4. See incorrect colouring placement

Expected Behavior

Diff colouring should be applied to the buffer containing the previous file state

Environment

  • Neovim version: 0.11.6
  • Claude Code CLI version: 2.1.50
  • OS: macOS 26.2
  • Plugin version: 0.3.0

Error Messages

N/A

Additional Context

Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in Neovim using the listed steps with the snacks file explorer open and a diff initiated through claudecode.nvim. Start by tracing the main-window checks around snacks_list_picker; done means diff colouring is applied to the buffer containing the previous file state rather than the picker window.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, vim
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.