Cannon07

A Neovim plugin that shows a live diff preview of Claude Code's file edits before you accept or reject them.

19
0
100% credibility
Found Mar 03, 2026 at 19 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Lua
AI Summary

A companion tool for Neovim that shows side-by-side previews of AI-proposed file changes before applying them.

How It Works

1
📰 Discover the Helper

While editing code in your favorite text editor with an AI assistant, you find this tool that lets you preview changes safely before they happen.

2
📥 Add It Easily

You simply add this helpful companion to your editor's list of tools, like picking up a new gadget.

3
⚙️ Set It Up Quick

In your project folder, you run one easy command to prepare it, and restart your AI helper.

4
See Changes Preview

When you ask the AI to update a file, a new view opens right in your editor showing the current version side-by-side with the suggested new one.

5
Review the Differences
Looks Perfect

Tell the AI yes, and the changes apply smoothly while the preview vanishes.

Needs Tweaks

Tell the AI no, then close the preview with a quick key press.

6
🔄 Everything Updates

Your files refresh automatically, keeping your work safe and under control.

🎉 Safe Editing Flow

Now every AI suggestion gets your review first, making your coding smoother and mistake-free.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 19 to 19 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is claude-preview.nvim?

claude-preview.nvim is a Lua Neovim plugin that pops open a side-by-side diff preview of Claude Code CLI's proposed file edits right before you accept or reject them. It hooks into Claude's PreToolUse and PostToolUse events via RPC to your Neovim instance, using native diff mode for full-file reviews with syntax highlighting. Install via lazy.nvim or manual path in your neovim github config, then run :ClaudePreviewInstallHooks to wire it into .claude/settings.local.json.

Why is it gaining traction?

Unlike neovim github copilot chat or agent plugins that inline suggestions, this gives a dedicated tab or vsplit for scrutinizing full AI diffs—auto-equalized widths, custom highlights, and auto-close on accept prevent bad merges. Commands like :ClaudePreviewStatus and :checkhealth claude-preview make setup and troubleshooting dead simple, fitting right into neovim plugin manager workflows. It's a lightweight safety net for neovim github integration with AI tools, standing out in neovim plugins lists for Claude users.

Who should use this?

Neovim users running Claude Code CLI externally for file edits, like full-stack devs using neovim github copilot agent mode alternatives on large repos. Teams in neovim plugin tutorial flows experimenting with AI agents, or solo coders wanting previews before hitting 'y' in the terminal.

Verdict

Grab it for your neovim plugins if Claude Code is in your stack—excellent README and config guide make the 19 stars and 1.0% credibility score feel like early upside, not a red flag. Skip for production until more adoption, but perfect for side projects.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.