Neovim plugin for AI-assisted text/code operations
Top 32.5% on sourcepulse
This Neovim plugin integrates AI capabilities, including ChatGPT-like sessions, instructable text/code operations, and speech-to-text, directly into the editor. It targets developers and power users seeking to leverage LLMs for enhanced productivity within their existing workflow, offering features like streaming responses, robust undo, and extensive customization via hooks.
How It Works
Gp.nvim operates by interacting with various LLM providers (OpenAI, Ollama, Anthropic, Perplexity, Google Gemini, Copilot) through a unified interface. It leverages Neovim's buffer management for chat sessions and uses templating to construct prompts from user selections, context, and custom instructions. Responses are streamed directly into Neovim buffers or popups, with a focus on native integration and extensibility through Lua hooks.
Quick Start & Requirements
lazy.nvim
, packer.nvim
, or vim-plug
.curl
, grep
. Optional: sox
for speech-to-text.Highlighted Details
.gp.md
files.Maintenance & Community
The project is actively maintained by Robitx. Community interaction and support channels are not explicitly detailed in the README.
Licensing & Compatibility
The plugin is distributed under the MIT license, allowing for commercial use and integration with closed-source projects.
Limitations & Caveats
While the core functionality relies on minimal dependencies, advanced features like speech-to-text require external tools (sox
). The effectiveness of custom instructions can vary between different LLM models.
3 months ago
1 day