Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages