Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/terror/chatgpt.nvim
Query ChatGPT in Neovim
https://github.com/terror/chatgpt.nvim
Last synced: 2 days ago
JSON representation
Query ChatGPT in Neovim
- Host: GitHub
- URL: https://github.com/terror/chatgpt.nvim
- Owner: terror
- License: cc0-1.0
- Created: 2022-12-04T18:20:39.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-04-09T23:35:08.000Z (about 1 year ago)
- Last Synced: 2024-02-27T22:37:41.338Z (4 months ago)
- Language: Python
- Homepage:
- Size: 47.9 KB
- Stars: 278
- Watchers: 4
- Forks: 15
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING
- License: LICENSE
Lists
- awesome-stars - terror/chatgpt.nvim - Query ChatGPT in Neovim (Python)
- awesome-chatgpt - chatgpt.vim
- awesome-chatgpt-project - chatgpt.vim
- awesome-stars - terror/chatgpt.nvim - Query ChatGPT in Neovim (Python)
- awesome-chatgpt - Neovim
- StarryDivineSky - terror/chatgpt.nvim
README
## chatgpt.vim 🤖
**chatgpt.nvim** is a Neovim plugin that lets you query ChatGPT inside a Neovim
buffer.### Demo
[![asciicast](https://asciinema.org/a/kDqlcFdEH0W3aifrXn06mpoMh.svg)](https://asciinema.org/a/kDqlcFdEH0W3aifrXn06mpoMh)
### Installation
_n.b. You must have [python3](https://www.python.org/downloads/) installed on your machine in order to
install and use this plugin._You can install this plugin with [packer](https://github.com/wbthomason/packer.nvim)
or any other vim plugin manager:```lua
use({
'terror/chatgpt.nvim',
run = 'pip3 install -r requirements.txt'
})
```### Configuration
The plugin looks for a configuration file in your home directory called
`.chatgpt-nvim.json`, and it expects a valid OpenAI api key to be set for
queries to work:```json
{ "api_key": "" }
```You can get an api key from OpenAI via their [website](https://platform.openai.com/account/api-keys).
### Commands
Below are the available commands this plugin supports:
| Name | Arguments | Description |
| ------- | --------- | ------------------------------------------------------------------ |
| ChatGPT | | Open a new interactive ChatGPT environment |
| ChatGPT | \[query\] | Load a ChatGPT response to `query` into the Neovim command prompt. |