CopilotChat.nvim  by CopilotC-Nvim

Neovim plugin for GitHub Copilot Chat integration

created 1 year ago
3,145 stars

Top 15.7% on sourcepulse

GitHubView on GitHub
Project Summary

This Neovim plugin integrates GitHub Copilot Chat, offering AI-powered coding assistance directly within the editor. It targets Neovim users seeking to leverage advanced LLMs like GPT-4o and Claude 3.7 Sonnet for code explanation, review, optimization, and more, with rich workspace context and customizable interactions.

How It Works

The plugin utilizes a modular provider architecture, supporting official Copilot Chat and custom LLM backends (Ollama, LM Studio, Mistral.ai). It features a smart embeddings system for rich workspace context, allowing explicit context sharing via visual selections or specified inputs. An interactive chat UI with completion, diffs, and quickfix integration, coupled with a powerful prompt system using composable templates and sticky prompts, enhances user control and workflow.

Quick Start & Requirements

  • Install: Via lazy.nvim or vim-plug.
  • Prerequisites: Neovim 0.10.0+, curl (8.0.0+ recommended), GitHub Copilot chat enabled in GitHub settings.
  • Optional Dependencies: tiktoken_core (for token counting), git, ripgrep, lynx.
  • Configuration: Requires github/copilot.vim or zbirenbaum/copilot.lua and nvim-lua/plenary.nvim.
  • Docs: https://copilotc-nvim.github.io/CopilotChat.nvim/

Highlighted Details

  • Supports multiple LLM providers and agents.
  • Extensible context providers for granular workspace understanding.
  • Interactive chat UI with diffs and quickfix integration.
  • Customizable prompts, system prompts, and sticky prompts.

Maintenance & Community

Licensing & Compatibility

  • MIT License.
  • Compatible with commercial and closed-source projects.

Limitations & Caveats

For Neovim versions prior to 0.11.0, noinsert or noselect must be added to completeopt for chat autocompletion to function correctly. For optimal autocompletion, popup should also be added to completeopt.

Health Check
Last commit

1 day ago

Responsiveness

1 day

Pull Requests (30d)
53
Issues (30d)
33
Star History
470 stars in the last 90 days

Explore Similar Projects

Starred by Dongxu Huang Dongxu Huang(Cofounder of PingCAP), Patrick von Platen Patrick von Platen(Core Contributor to Hugging Face Transformers and Diffusers), and
1 more.

copilot.lua by zbirenbaum

0.5%
4k
Neovim plugin enhancing GitHub Copilot
created 3 years ago
updated 1 day ago
Feedback? Help us improve.