Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.02 KB

File metadata and controls

51 lines (36 loc) · 1.02 KB

Copilot Chat for Neovim

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 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