Neovim plugin for LLM-based text generation
Top 28.5% on sourcepulse
This Neovim plugin provides text generation capabilities using Large Language Models (LLMs) through Ollama. It's designed for Neovim users who want to integrate AI-powered text manipulation, summarization, or code generation directly into their workflow, offering customizable prompts and flexible integration with local LLM models.
How It Works
The plugin leverages Ollama to interact with local LLM models. Users can define custom prompts, which can include placeholders for selected text, file type, or user input. The plugin sends the prompt and context to the Ollama API via curl
and displays the generated text in a Neovim window. It supports streaming responses and offers options for how the output is displayed (float, split) and how it interacts with the buffer (replace, append).
Quick Start & Requirements
lazy.nvim
with require('gen').setup({...})
.llama3.2
, mistral
).Highlighted Details
$text
, $filetype
, $input
, and $register
.float
, split
, horizontal-split
).Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The plugin relies on an external curl
command for Ollama interaction, which might introduce platform-specific issues. The absence of a specified license raises concerns about commercial use and redistribution.
3 months ago
1 week