coder/claudecode.nvim
🧩 Claude Code Neovim IDE Extension
What it solves
This plugin brings the capabilities of Anthropic's Claude Code AI coding assistant directly into Neovim. It allows users to interact with Claude while staying within their editor, providing a seamless integration that was previously only available in VS Code and JetBrains.
How it works
The plugin implements a WebSocket-based variant of the Model Context Protocol (MCP) by reverse-engineering the official extensions. It creates a WebSocket server within Neovim that the Claude Code CLI connects to. This enables Claude to see the user's current file, track selections in real-time, and open files or propose changes via native Neovim diff views.
Who it’s for
Neovim users who want an AI-powered coding assistant that can interact with their workspace, manage files, and handle code changes through a dedicated terminal split and native diffing tools.
Highlights
- Pure Lua Implementation: Built with
vim.loopand Neovim built-ins, requiring zero external dependencies. - Protocol Compatibility: Fully compatible with the official WebSocket MCP implementation used by Anthropic.
- Native Diff Support: Proposed changes from Claude are presented in native Neovim diff views, which can be accepted or rejected.
- Real-time Context: Supports sending visual selections and files from various file explorers (like NvimTree or Oil.nvim) directly to Claude.
- Deep Integration: Includes a custom WebSocket server and JSON-RPC 2.0 message handling to allow Claude to control the editor.
Related
- Project
- Project
- Project
- Project
- Project