A Neovim plugin that integrates Claude Code CLI directly into your editor, automatically sharing file context and selections without modifying Claude's configuration.
git clone https://github.com/WTFox/claude-chat.nvim.gitclaude-chat.nvim is a Neovim plugin that wraps Claude Code CLI, enabling seamless AI-assisted coding workflows directly in your editor. It automatically passes your current file, selections, and custom prompts to Claude while displaying changes in real-time. The plugin supports interactive chat in split or floating windows, visual selection handling, and customizable keybindings. Whether you're debugging code, asking about specific functions, or getting general coding advice, claude-chat.nvim bridges your editor and Claude Code without configuration changes. Built for developers using Neovim 0.7+ who want Claude's capabilities without leaving their workflow.
Install via lazy.nvim with `{ 'wtfox/claude-chat.nvim', config = true }`. Map `:ClaudeChat` to a keybinding (e.g., `<leader>cc`) in both normal and visual modes. Press the keybinding with or without a text selection to start chatting—the plugin automatically includes file context.
Ask Claude about the current file or specific code selection
Debug code issues with context automatically shared
Toggle Claude chat window visibility while preserving conversation state
Send direct commands to Claude from Neovim without opening external tools
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/WTFox/claude-chat.nvimCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Create a Neovim plugin that integrates Claude's API for code workflows. The plugin should allow users to send code snippets from their Neovim editor to Claude for analysis, suggestions, or debugging. Include features like syntax highlighting for the code snippets and a sidebar for displaying Claude's responses. The plugin should be compatible with Neovim 0.9 or later. Use the following structure for the plugin: [PLUGIN_NAME], [FEATURES], [COMPATIBILITY].
```lua
-- claude-chat.nvim
local M = {}
-- Setup function
function M.setup()
-- Initialize the plugin
vim.api.nvim_create_user_command('ClaudeChat', function()
-- Open a new buffer for the chat
local buf = vim.api.nvim_create_buf(false, true)
vim.api.nvim_buf_set_option(buf, 'filetype', 'markdown')
vim.api.nvim_open_win(buf, true, {
relative = 'editor',
width = 80,
height = 20,
col = 0,
row = 0,
style = 'minimal',
border = 'rounded'
})
end, {})
end
-- Function to send code to Claude
function M.send_to_claude()
local code = vim.api.nvim_get_current_line()
-- Here you would integrate with Claude's API
-- For now, we'll just print the code to the chat buffer
local buf = vim.api.nvim_get_current_buf()
vim.api.nvim_buf_set_lines(buf, -1, -1, false, {
'```lua
',
code,
'```'
})
end
return M
```AI assistant built for thoughtful, nuanced conversation
IronCalc is a spreadsheet engine and ecosystem
ITIL-aligned IT service management platform
Customer feedback management made simple
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan