Skip to content

Commit

Permalink
Add necessary bits to install and enable copilot.
Browse files Browse the repository at this point in the history
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
georgalis authored Jun 28, 2022
1 parent c202d89 commit 3a279d8
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.

```
Expand All @@ -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.

Copy link
@yanshin1499

yanshin1499 Oct 20, 2022

Split

~/.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.

Copy link
@yanshin1499

This comment was marked as resolved.

Copy link
@kace1420

kace1420 via email Oct 20, 2022

Expand Down

0 comments on commit 3a279d8

Please sign in to comment.