claude-code.nvim
Seamless integration between Claude Code AI assistant and Neovim
claude-code.nvim is a Neovim plugin that brings Anthropic's Claude Code AI assistant directly into the editor as a toggleable terminal window. It automatically detects when Claude Code modifies files and reloads them in real-time, ensuring your buffers stay synchronized with AI-generated changes. The plugin supports floating windows, multiple command variants for conversation management, and automatically sets your working directory to the git repository root when available. With customizable keybindings and window positioning, it provides a seamless workflow for AI-assisted coding without leaving Neovim.
Key Features
Use Cases
- 01AI-assisted code refactoring and modification directly within Neovim
- 02Resuming previous Claude Code conversations while editing related files
- 03Real-time collaboration with Claude Code on multi-file projects with automatic buffer updates
- 04Quick code generation or debugging sessions in a floating window overlay
- 05Iterative development with Claude Code while maintaining full editor context
- 06Git-aware AI assistance that automatically operates from the repository root
Related Plugins
View moreandrej-karpathy-skills
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
claude-mem
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Understand-Anything
Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
rtk
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
claude-code.nvim — FAQ
What is claude-code.nvim?+
claude-code.nvim is a Neovim plugin that integrates Anthropic's Claude Code AI assistant into your editor as a terminal window. It provides automatic file synchronization and convenient keybindings for AI-assisted coding workflows.
How do I install claude-code.nvim?+
Install using your preferred Neovim plugin manager (lazy.nvim, packer.nvim, or vim-plug) along with the required plenary.nvim dependency. After installation, call require('claude-code').setup() in your configuration file.
What are the prerequisites for using this plugin?+
You need Neovim 0.7.0 or later, the Claude Code CLI tool installed and available in your PATH, and plenary.nvim. No additional API keys are required beyond what Claude Code itself needs.
Which editors does this plugin work with?+
This plugin is specifically designed for Neovim 0.7.0 and later versions. It does not work with standard Vim or other editors.
Is claude-code.nvim free to use?+
Yes, the plugin itself is free and open-source under the MIT License. However, using Claude Code requires access to Anthropic's API, which may have associated costs.
How do I toggle the Claude Code terminal window?+
By default, use Ctrl+, in either normal or terminal mode, or run the :ClaudeCode command. You can customize these keybindings through the plugin's configuration.
How do I install claude-code.nvim?+
Open the source repository on GitHub and follow its README. claude-code.nvim is a plugin — MCP Agents Market links you directly to the official repo.
Is claude-code.nvim free?+
claude-code.nvim is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.