Neovim plugin for LLM-powered text editing
Top 50.4% on sourcepulse
parrot.nvim integrates Large Language Models (LLMs) into Neovim for text generation, completion, and chat-like editing sessions. It targets Neovim users seeking to leverage AI for code generation, text manipulation, and interactive assistance directly within their editor. The plugin offers a flexible, provider-agnostic architecture, supporting numerous LLM APIs and local models.
How It Works
parrot.nvim acts as a bridge between Neovim and various LLM APIs. It utilizes a modular design, allowing users to configure and switch between different providers (e.g., OpenAI, Anthropic, Ollama) and models. The plugin facilitates text generation through commands like PrtRewrite
, PrtAppend
, and PrtPrepend
, which operate on visual selections. It also supports persistent chat sessions, storing conversations in markdown files and allowing custom hooks for tailored workflows.
Quick Start & Requirements
lazy.nvim
, packer.nvim
, or native Neovim package management.plenary.nvim
. Optional: ripgrep
, fzf
, fzf-lua
, nvim-notify
.Highlighted Details
native
or buffer
) and prompt collections.{{filecontent}}
, {{selection}}
) and completion sources (@file
, @buffer
).Maintenance & Community
The project is actively maintained by frankroeder. Community interaction and contributions are encouraged via GitHub issues.
Licensing & Compatibility
MIT License. Compatible with commercial use and closed-source linking.
Limitations & Caveats
The plugin is under active development, with some features based on an early fork. Certain advanced features like "thinking" mode are provider-specific (currently fully implemented for Anthropic). Users may need to manage API keys and potentially troubleshoot provider configurations.
1 week ago
1 day