Neovim plugin for generating and editing text
Top 90.4% on sourcepulse
This plugin provides a minimalist interface for Neovim users to generate and edit text using OpenAI's GPT models. It targets developers and writers who want to leverage AI for code completion, text generation, and in-place editing directly within their editor. The primary benefit is seamless AI integration into the Neovim workflow, enhancing productivity for various text-based tasks.
How It Works
The plugin integrates with OpenAI's API to perform text generation and editing. It supports several modes: automatic completion in insert mode (triggered by <Ctrl-A>
), prompt-based generation in normal mode (via :AI <prompt>
), and in-place editing of selected text. It also features streaming support for completions, providing a more responsive user experience.
Quick Start & Requirements
Plug 'aduros/ai.vim'
$OPENAI_API_KEY
environment variable.curl
to be installed.:help ai.vim
.Highlighted Details
<Ctrl-A>
.Maintenance & Community
No specific contributors, sponsorships, or community links (Discord/Slack) are mentioned in the README.
Licensing & Compatibility
The README does not explicitly state a license. Compatibility for commercial use or closed-source linking is not specified.
Limitations & Caveats
The plugin relies on OpenAI's API, meaning usage is subject to OpenAI's terms and potential costs. Users must be aware of the accuracy limitations of GPT models and the privacy implications of sending text to OpenAI, especially for sensitive information.
1 year ago
1 day