jowu598 / CopilotChat.nvim

Chat with GitHub Copilot in Neovim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Copilot Chat for Neovim

Note

You might want to take a look at this fork which is more well maintained & is more configurable. I personally use it now as well.

Authentication

It will prompt you with instructions on your first start. If you already have Copilot.vim or Copilot.lua, it will work automatically.

Installation

Lazy.nvim

  1. pip install python-dotenv requests pynvim==0.5.0 prompt-toolkit
  2. Put it in your lazy setup
require('lazy').setup({
    'gptlang/CopilotChat.nvim',
    ...
})
  1. Run :UpdateRemotePlugins
  2. Restart neovim

Manual

  1. Put the files in the right place
$ git clone https://github.com/gptlang/CopilotChat.nvim
$ cd CopilotChat.nvim
$ cp -r --backup=nil rplugin ~/.config/nvim/
  1. Install dependencies
$ pip install -r requirements.txt
  1. Open up Neovim and run :UpdateRemotePlugins
  2. Restart Neovim

Usage

  1. Yank some code into the unnamed register (y)
  2. :CopilotChat What does this code do?

Roadmap

  • Translation to pure Lua
  • Tokenizer
  • Use vector encodings to automatically select code
  • Sub commands - See issue #5

About

Chat with GitHub Copilot in Neovim

License:GNU General Public License v3.0


Languages

Language:Python 99.3%Language:Lua 0.7%