</>MCP Agents Market
Plugin

claude-code.nvim

by greggh2.1kLuaUpdated 2026-02-04

Seamless integration between Claude Code AI assistant and Neovim

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

Toggle Claude Code terminal window with a single keypress in normal or terminal mode
Automatic file reload detection when Claude Code modifies open buffers
Support for command-line arguments including --continue and --verbose flags
Flexible window positioning: horizontal/vertical splits or floating windows with customizable borders
Automatic git repository root detection for proper working directory context
Built-in window navigation keymaps for seamless movement between editor and AI terminal
Configuration validation and 44 comprehensive tests for reliability
Integration with which-key and plenary.nvim for enhanced functionality

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 more

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.

Related searches