Skip to content

DanBradbury/copilot.vim

 
 

Repository files navigation

Copilot Autocompletion and Chat for Vim

copilotChat

This is a fork of Copilot.vim to go beyond the LSP and provide Copilot Chat functionality without having to leave vim.

Nvim folks will be able to use CopilotChat.nvim for a similar experience.

Requirements

Commands

Command Description
:CopilotChat Opens a new copilot window (default vsplit right)
:CopilotConfig Open config.json for default settings when opening a new CopilotChat window
X:CopilotPrompts View / select prompt templates
:CopilotModels View available modes / select active model

Key Mappings

Location Insert Normal Action
global - <Leader-cc> Opens a new chat window :CopilotChat
<buffer> - <CR> Submit current prompt
:CopilotModels <buffer> - <CR> Select the model on the current line for future chat use

Installation

Using vim-plug, Vundle, or any other plugin manager.

Setup

  1. Run :CopilotChat to open a chat window. You will be prompted to setup your device on first use.
  2. Write your prompt under the line separator and press <Enter> in normal mode / :SubmitChatMessage
  3. You should see a Waiting for response.. in the buffer to indicate work is being done in the background
  4. 🎉!

About

Neovim plugin for GitHub Copilot

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 96.5%
  • Lua 3.2%
  • Other 0.3%