1
0
mirror of synced 2025-12-23 21:07:12 -05:00

Update content/copilot/getting-started-with-github-copilot/getting-started-with-github-copilot-in-neovim.md

Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
This commit is contained in:
Jules
2022-06-09 14:47:01 +02:00
committed by GitHub
parent 0873eab31d
commit 9684c09f0d

View File

@@ -18,13 +18,13 @@ To use {% data variables.product.prodname_copilot %} in Neovim you must have Neo
{% mac %}
1. To use {% data variables.product.prodname_copilot %} in Neovim, install the {% data variables.product.prodname_copilot %} plugin. You can either install the plugin from a plugin manager or directly.
- You can install `github/copilot.vim` with a plugin manager, such as vim-plug or packer.nvim. For more information, see the [vim plug](https://github.com/junegunn/vim-plug) documentation, or the [packer.nvim](https://github.com/wbthomason/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:
- If you use a plugin manager like vim-plug or packer.nvim, use the plugin manager to install `github/copilot.vim`. For more information, see the documentation for the plugin manager. For example, you can see the documentation for [vim-plug](https://github.com/junegunn/vim-plug) or [packer.nvim](https://github.com/wbthomason/packer.nvim).
- 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 Terminal.
```
git clone https://github.com/github/copilot.vim \
~/.config/PATH/TO/YOUR/NEOVIM/CONFIG/FILE/copilot.vim
```
```
git clone https://github.com/github/copilot.vim \
PATH/TO/NEOVIM/PLUGINS/copilot.vim
```
1. To authenticate and invoke {% data variables.product.prodname_copilot %} run the following command in Neovim:
```