-
Notifications
You must be signed in to change notification settings - Fork 59.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add necessary bits to install and enable copilot.
No need to send users down the rabbit hole of how many legacy ways to install vim plugins... Simply direct them to use the new builtin nvim plugin support.
- Loading branch information
Showing
1 changed file
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,8 @@ To use {% data variables.product.prodname_copilot %} in Neovim you must have Neo | |
``` | ||
git clone https://github.com/github/copilot.vim \ | ||
~/.config/PATH/TO/YOUR/NEOVIM/CONFIG/FILE/copilot.vim | ||
``` | ||
|
||
1. To configure {% data variables.product.prodname_copilot %}, open Neovim and enter the following command. | ||
|
||
``` | ||
|
@@ -59,17 +61,23 @@ To use {% data variables.product.prodname_copilot %} in Neovim you must have Neo | |
{% linux %} | ||
|
||
{% data reusables.copilot.install-copilot-in-neovim %} | ||
- To install the {% data variables.product.prodname_copilot %} plugin directly, you must know where Neovim stores plugins. To install the plugin, enter the following command in Git Bash. | ||
- To install the {% data variables.product.prodname_copilot %} plugin with the builtin Neovim plugin manager, enter the following shell commands to clone the {% data variables.product.prodname_copilot %} release. | ||
|
||
``` | ||
git clone https://github.com/github/copilot.vim \ | ||
This comment was marked as spam.
Sorry, something went wrong. |
||
~/.config/PATH/TO/YOUR/NEOVIM/CONFIG/FILE/copilot.vim | ||
mkdir -p .config/nvim/pack/github/start | ||
git clone https://github.com/github/copilot.vim.git \ | ||
~/.config/nvim/pack/github/start/copilot.vim | ||
``` | ||
1. Visit https://github.com/settings/copilot and complete the required steps. | ||
1. To configure {% data variables.product.prodname_copilot %}, open Neovim and enter the following command. | ||
|
||
``` | ||
:Copilot setup | ||
``` | ||
1. Enable {% data variables.product.prodname_copilot %} in your Neovim configuration, or with the Neovim command. | ||
``` | ||
:Copilot enable | ||
``` | ||
{% endlinux %} | ||
|
||
## Learning to use {% data variables.product.prodname_copilot %} in Neovim | ||
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as resolved.
Sorry, something went wrong.
kace1420
via email
|
||
|
Split