/neovim-copilot-nix-bundle

Run Neovim with GitHub Copilot out of the box

Primary LanguageNixApache License 2.0Apache-2.0

vim-copilot-nix

This is a quick and dirty bundle that helps anybody with a UNIX system (Linux, FreeBSD, macOS, Windows Subsystem For Linux) to access GitHub Copilot in Neovim.

If you love (Neo)Vim and want to try out the GitHub Copilot goodness, this is probably the quickest way to get a taste of it.

Just clone this repository and follow the instructions.

Prerequisites

This bundle requires a working Nix installation.

To make things smoother, direnv is also recommended, but not required.

Installation

If you have direnv installed, just cd to a directory containing this file and run direnv allow.

Don't worry if you don't have direnv, in that case you'll have to run nix-shell default.nix

It will take some time the first time you do it as Neovim will have to build on your machine. Each subsequent time should be blazingly fast.

Usage

Once you're in a Nix shell (either by using direnv or nix-shell) just type nvim to open the 0.6.0-pre version of Neovim with Copilot installed. Run :Copilot setup to authenticate with GitHub and then start hacking on your projects.

Have an amazing flight!

GitPod

Also: you can try it in your browser thanks to GitPod!

  1. Open https://gitpod.io/#https://github.com/DoomHammer/neovim-copilot-nix-bundle
  2. In the terminal, run direnv allow
  3. Wait a moment
  4. In the terminal, run nvim
  5. Run :Copilot setup in Neovim

Open in Gitpod