Neovim plugin for LLM-assisted programming
Top 99.2% on sourcepulse
This Neovim plugin provides LLM-assisted programming features for developers seeking a streamlined, no-frills experience. It integrates with various LLM providers, enabling code generation, explanation, and refactoring directly within the editor.
How It Works
The plugin leverages Neovim's Lua API to send code snippets or selected text to configured LLM services via HTTP requests. It supports OpenAI-compatible endpoints, including Groq, OpenAI, and Anthropic, with the flexibility to add custom providers. Responses are displayed in the Neovim buffer, with an option to replace selected text.
Quick Start & Requirements
lazy.nvim
:
{
"melbaldove/llm.nvim",
dependencies = { "nvim-neotest/nvim-nio" }
}
GROQ_API_KEY
, OPENAI_API_KEY
, ANTHROPIC_API_KEY
).Highlighted Details
create_llm_md
function for dedicated prompt/response files.@path/to/file.md
) for context inclusion.Maintenance & Community
ask.md
VS Code plugin.Licensing & Compatibility
Limitations & Caveats
The plugin is primarily configured via Lua and environment variables, requiring familiarity with Neovim's plugin ecosystem. The license status needs clarification for commercial adoption.
1 year ago
1 day