Neovim plugin for interacting with OpenAI GPT models
Top 56.9% on sourcepulse
NeoAI.nvim is a Neovim plugin that integrates OpenAI's GPT models for code generation, text rewriting, and contextual suggestions. It targets Neovim users seeking to enhance their coding workflow with AI assistance, offering a seamless experience without disrupting their focus.
How It Works
The plugin provides three primary interaction modes: Normal GUI Mode for chat-like interactions within Neovim, Context Mode for providing specific code or text snippets as context for AI queries, and Inject Mode for direct, non-GUI insertion of AI responses into the buffer. This multi-modal approach allows users to choose the most efficient method for their task, from quick code fixes to detailed explanations.
Quick Start & Requirements
vim-plug
, lazy.nvim
, or packer.nvim
. Requires MunifTanjim/nui.nvim
and curl
.OPENAI_API_KEY
environment variable.Highlighted Details
g
for general, c
for code snippets).Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The plugin is in early development and subject to change. Users are cautioned about potential OpenAI costs and advised to monitor usage. Some features like tests and multiple chat sessions are still under development.
1 week ago
1 day