3.8 KiB
title, shortTitle, product, intro, versions, topics
| title | shortTitle | product | intro | versions | topics | |||
|---|---|---|---|---|---|---|---|---|
| Getting started with GitHub Copilot in NeoVim | Neovim | {% data reusables.gated-features.copilot %} | Learn how to install {% data variables.product.prodname_copilot %} in Neovim, and start seeing suggestions as you write comments and code. |
|
|
Prerequisites
- To use {% data variables.product.prodname_copilot %} in Neovim you must have Neovim and Node.js version 17 or below installed. For more information, see the Neovim documentation and the Node.js website.
Installing the Neovim extension
{% mac %}
-
To use {% data variables.product.prodname_copilot %} in Neovim, install the {% data variables.product.prodname_copilot %} plugin:
-
You can install
github/copilot.vimwith a plugin manager, such as vim-plug or packer.nvim. For more information, see the vim plug documentation, or the packer.nvim documentation. -
Alternatively, you can install the {% data variables.product.prodname_copilot %} plugin directly into your Neovim config file by running the following command in Terminal:
git clone https://github.com/github/copilot.vim \ ~/.config/PATH/TO/YOUR/NEOVIM/CONFIG/FILE/copilot.vim
-
-
To authenticate and invoke {% data variables.product.prodname_copilot %} run the following command in Neovim:
:Copilot setup
{% endmac %}
{% windows %}
-
To use {% data variables.product.prodname_copilot %} in Neovim, install the {% data variables.product.prodname_copilot %} plugin:
-
You can install
github/copilot.vimwith a plugin manager, such as vim-plug or packer.nvim. For more information, see the vim-plug documentation, or the packer.nvim documentation. -
Alternatively, you can install the {% data variables.product.prodname_copilot %} plugin directly into your Neovim config file by running the following command in Git Bash:
git clone https://github.com/github/copilot.vim \ ~/.config/PATH/TO/YOUR/NEOVIM/CONFIG/FILE/copilot.vim
-
-
To authenticate and invoke {% data variables.product.prodname_copilot %} run the following command in Neovim:
:Copilot setup
{% endwindows %}
{% linux %}
-
To use {% data variables.product.prodname_copilot %} in Neovim, install the {% data variables.product.prodname_copilot %} plugin:
-
You can install
github/copilot.vimwith a plugin manager, such as vim-plug or packer.nvim. For more information, see the vim plug documentation, or the packer.nvim documentation. -
Alternatively, you can install the {% data variables.product.prodname_copilot %} plugin directly into your Neovim config file by running the following command in the terminal:
git clone https://github.com/github/copilot.vim \ ~/.config/PATH/TO/YOUR/NEOVIM/CONFIG/FILE/copilot.vim
-
-
To authenticate and invoke {% data variables.product.prodname_copilot %} run the following command in Neovim:
:Copilot setup
{% endlinux %}
Seeing suggestions in Neovim
For guidance on using {% data variables.product.prodname_copilot %} in Neovim, invoke the {% data variables.product.prodname_copilot %} documentation in Neovim by running the following command:
```
:help copilot
```