
ChatGPT.nvim
ChatGPT inside Neovim: chat, edit, and complete with GPT models.
About
ChatGPT.nvim is a popular Neovim plugin by jackMort that brings OpenAI's GPT models directly into the editor. It offers interactive Q&A sessions, persona-based conversations from Awesome ChatGPT Prompts, an interactive editing window for instruction-driven code changes, and Copilot-style code completion.
Customizable actions cover docstring creation, test generation, code optimization, summarization, bug fixing, and code explanation, all definable through JSON configuration. Rich message rendering includes styled code blocks, markdown formatting, and inline context references from LSP definitions. It requires an OpenAI API key and installs via lazy.nvim or packer with its nui, plenary, and telescope dependencies.
What it can do
- Interactive GPT chat inside Neovim
- Instruction-driven code editing window
- Copilot-style code completion
- Customizable JSON-defined actions
Setup
Set the OPENAI_API_KEY environment variable and install jackMort/ChatGPT.nvim via your plugin manager.
Prerequisites
Neovim, an OpenAI API key, and the nui, plenary, and telescope plugins.
Use cases
Works with
Trust score — 7/10
Scored 7/10 (metrics tier, metrics-v1). Evidence: Verified via vendor site/docs/GitHub and reputable coverage, wave 110; Trending score 74/100 from researcher assessment.
Sources
Every fact above was checked against these sources. Where a claim comes from the provider and couldn't be independently verified, the text says so.