Skip to content

[BUG] Somehow my UI for the diff preview is glitches #236

@edwardtran1561

Description

@edwardtran1561

Bug Description

When claude code ask me to edit a file, the preview ui in my neovim somehow is glitch.

To Reproduce

Steps to reproduce the behavior:

  1. cd to a work directory, then run nvim
  2. open a file, ac to open claude code pane
  3. Tell claude code to edit something

Expected Behavior

The split pane of preview diff should show the right position

Environment

  • Neovim version: 0.11.6
  • Claude Code CLI version: 2.1.84
  • OS: MacOS Tahoe 26.3.1
  • Plugin version: Latest

Additional findings

The bug only occurs when using Snacks Explorer (LazyVim default).
Switching to neo-tree resolves the issue completely.

This suggests claudecode.nvim does not properly detect snacks_explorer
window type when deciding where to open the diff split.

Expected: diff should open in the editor window, not the explorer window

Screen.Recording.2026-04-06.at.18.29.10.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions