Neovim plugin for LLM integration, enabling AI tools
Top 82.2% on sourcepulse
This plugin provides free large language model (LLM) support for Neovim, enabling users to interact with various LLMs directly within their editor. It targets developers and power users who want to leverage AI for tasks like code completion, translation, and documentation generation without leaving Neovim. The primary benefit is seamless integration of powerful AI capabilities into the coding workflow.
How It Works
The plugin utilizes a flexible architecture that supports numerous LLM providers and local models through configurable API endpoints and api_type
settings. It handles both streaming and non-streaming responses, with customizable handlers for parsing and displaying output. Users can define custom AI "tools" with specific prompts and handlers, allowing for tailored workflows like side-by-side diffs for code optimization or single-round Q&A sessions.
Quick Start & Requirements
lazy.nvim
).nvim-lua/plenary.nvim
, MunifTanjim/nui.nvim
.curl
must be installed. API keys for desired LLM services must be obtained and set as environment variables (e.g., LLM_KEY
, ACCOUNT
for Cloudflare).Highlighted Details
Maintenance & Community
olimorris/codecompanion.nvim
and SmiteshP/nvim-navbuddy
.Licensing & Compatibility
Limitations & Caveats
curl
usage and might need custom request formats.fetch_key
functions and potentially .env
files.mini.diff
for diff display require additional plugin installations.1 week ago
1 day