Code with AI using codecompanion.nvim
Get AI-powered coding assistance with codecompanion.nvim, a Lua plugin for Neovim, popular with 6.7k+ GitHub stars, ideal for startup founders.
6,748 stars438 forksLuaQuality 9/10Updated 7/17/2026100% free ยท open source Codecompanion.nvim provides AI-powered coding assistance, such as code completion and error detection, within the Neovim text editor.
Run the command :PackerSync to install codecompanion.nvim after adding it to your Packer configuration
- โขYou're a developer looking for intelligent code suggestions to speed up your coding process
- โขYou need help with code refactoring and optimization within Neovim
- โขYou want to leverage AI-powered tools to improve your overall coding efficiency and accuracy
- 1Add the codecompanion.nvim plugin to your Neovim configuration file (usually init.lua) with require('packer').use({ 'olimorris/codecompanion.nvim' })
- 2Configure the codecompanion settings in your init.lua file, such as setting the codecompanion.server_url
- 3Restart Neovim or run :PackerSync to apply the changes and load the plugin
- 4Open a file and start typing to see AI-powered code suggestions and assistance
- 5Use the :CodeCompanionConfig command to fine-tune the plugin's settings and behavior
Ready-to-paste prompt :CodeCompanionComplete to trigger AI-powered code completion for the current cursor position
Heads up: Make sure you have Neovim 0.7 or higher installed, as codecompanion.nvim relies on its built-in LSP client features
Saves to your device
Topics
acp
agent
agent-client-protocol
anthropic
claude-code
copilot
deepseek
gemini
google-gemini
llm
neovim
nvim
ollama
openai
openrouter
plugin
What's inside โ free to inspect
No purchase needed
Read the entire source before you build โ unlike paid marketplaces that hide it behind a buy button.