gen.nvim  by David-Kunz

Neovim plugin for LLM-based text generation

created 1 year ago
1,468 stars

Top 28.5% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

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

  • Install: Use a Neovim plugin manager like lazy.nvim with require('gen').setup({...}).
  • Prerequisites: Ollama must be installed and running with at least one model (e.g., llama3.2, mistral).
  • Links: Video Demo

Highlighted Details

  • Seamless integration with Ollama for local LLM execution.
  • Customizable prompts with placeholders like $text, $filetype, $input, and $register.
  • Flexible output display modes (float, split, horizontal-split).
  • Supports prompt replacement, context-aware chat, and model selection.
  • Extensible prompt definitions for custom text manipulation tasks.

Maintenance & Community

  • Developed by David-Kunz.
  • Community support channels are not explicitly mentioned in the README.

Licensing & Compatibility

  • The README does not specify a license.

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.

Health Check
Last commit

3 months ago

Responsiveness

1 week

Pull Requests (30d)
0
Issues (30d)
0
Star History
64 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.