ChatGPT.nvim  by jackMort

Neovim plugin for OpenAI ChatGPT API integration

created 2 years ago
3,986 stars

Top 12.5% on sourcepulse

GitHubView on GitHub
Project Summary

This Neovim plugin provides seamless integration with OpenAI's ChatGPT API, enabling users to leverage advanced natural language processing for code assistance, content generation, and interactive Q&A directly within their editor. It targets developers and power users seeking to enhance productivity through AI-powered features.

How It Works

The plugin utilizes the OpenAI API to perform various tasks, including interactive chat, code completion, grammar correction, translation, and code optimization. It supports both standard OpenAI endpoints and Azure deployments, offering flexibility in API configuration. Users can define custom actions via JSON, specifying templates, strategies (replace, display, append, edit), and API parameters, allowing for highly tailored workflows.

Quick Start & Requirements

  • Installation: Install via plugin managers like packer.nvim or lazy.nvim.
  • Prerequisites: curl, OpenAI API key, nui.nvim, plenary.nvim. trouble.nvim and telescope.nvim are optional.
  • Configuration: API key can be set via OPENAI_API_KEY environment variable or api_key_cmd for secure management (e.g., using password managers). Azure configuration requires specific commands or environment variables.
  • Docs: Plugin Showcase Video

Highlighted Details

  • Interactive Q&A and persona-based conversations.
  • Code editing assistance and GitHub Copilot-like code completion.
  • Extensive list of pre-defined customizable actions (grammar correction, translation, summarization, etc.).
  • Support for custom actions defined via JSON with templating and strategy options.
  • Secure API key management via api_key_cmd for password managers or GPG.

Maintenance & Community

  • Actively maintained by jackMort.
  • Community support channels are not explicitly mentioned in the README.

Licensing & Compatibility

  • The README does not explicitly state a license.

Limitations & Caveats

  • Edit models are deprecated and may not function as expected.
  • API credits are separate from ChatGPT Plus subscriptions and must be purchased.
Health Check
Last commit

9 months ago

Responsiveness

1 week

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

Explore Similar Projects

Feedback? Help us improve.