@@ -323,16 +323,16 @@ You can configure {% data variables.product.prodname_copilot %} to connect throu
|
||||
|
||||
{% endvscode %}
|
||||
|
||||
{% neovim %}
|
||||
{% vimneovim %}
|
||||
|
||||
## Configuring {% data variables.product.prodname_copilot %} in Neovim
|
||||
## Configuring {% data variables.product.prodname_copilot %} in Vim/Neovim
|
||||
|
||||
For guidance on configuring {% data variables.product.prodname_copilot %} in Neovim, invoke the {% data variables.product.prodname_copilot %} documentation in Neovim by running the following command:
|
||||
For guidance on configuring {% data variables.product.prodname_copilot %} in Vim/Neovim, invoke the {% data variables.product.prodname_copilot %} documentation in Vim/Neovim by running the following command:
|
||||
|
||||
|
||||
:help copilot
|
||||
|
||||
{% data reusables.copilot.dotcom-settings %}
|
||||
|
||||
{% endneovim %}
|
||||
{% endvimneovim %}
|
||||
|
||||
|
||||
@@ -350,54 +350,70 @@ You can also use {% data variables.product.prodname_copilot %} to generate sugge
|
||||
|
||||
{% endvscode %}
|
||||
|
||||
{% neovim %}
|
||||
{% vimneovim %}
|
||||
|
||||
## About {% data variables.product.prodname_copilot %} and Neovim
|
||||
## About {% data variables.product.prodname_copilot %} and Vim/Neovim
|
||||
|
||||
{% data reusables.copilot.procedural-intro %}
|
||||
|
||||
If you use Neovim, you can view and incorporate suggestions from {% data variables.product.prodname_copilot %} directly within the editor.
|
||||
If you use Vim/Neovim, you can view and incorporate suggestions from {% data variables.product.prodname_copilot %} directly within the editor.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
{% data reusables.copilot.subscription-prerequisite %}
|
||||
|
||||
- To use {% data variables.product.prodname_copilot %} in Neovim you must have Neovim version 0.6 or above and Node.js version 17 or below installed. For more information, see the [Neovim documentation](https://neovim.io/doc/) and the [Node.js website](https://nodejs.org/en/).
|
||||
- To use {% data variables.product.prodname_copilot %} in Vim/Neovim you must have Vim version 9.0.0185 / Neovim version 0.6 or above and Node.js version 17 or below installed. For more information, see the [Vim](https://vimhelp.org/) / [Neovim documentation](https://neovim.io/doc/) and the [Node.js website](https://nodejs.org/en/).
|
||||
|
||||
## Installing the Vim/Neovim extension on macOS
|
||||
|
||||
{% data reusables.copilot.install-copilot-in-vimneovim %}
|
||||
- To install {% data variables.product.prodname_copilot %} with Vim's built-in plugin manager, enter the following command in Terminal:
|
||||
|
||||
git clone https://github.com/github/copilot.vim \
|
||||
~/.vim/pack/github/start/copilot.vim
|
||||
|
||||
## Installing the Neovim extension on macOS
|
||||
|
||||
{% data reusables.copilot.install-copilot-in-neovim %}
|
||||
- To install {% data variables.product.prodname_copilot %} with Neovim's built-in plugin manager, enter the following command in Terminal:
|
||||
|
||||
git clone https://github.com/github/copilot.vim \
|
||||
~/.config/nvim/pack/github/start/copilot.vim
|
||||
|
||||
{% data reusables.copilot.config-enable-copilot-in-neovim %}
|
||||
{% data reusables.copilot.config-enable-copilot-in-vimneovim %}
|
||||
|
||||
|
||||
## Installing the Neovim extension on Windows
|
||||
## Installing the Vim/Neovim extension on Windows
|
||||
|
||||
{% data reusables.copilot.install-copilot-in-vimneovim %}
|
||||
- To install {% data variables.product.prodname_copilot %} with Vim's built-in plugin manager, enter the following command in Git Bash:
|
||||
|
||||
git clone https://github.com/github/copilot.vim.git \
|
||||
$HOME/vimfiles/pack/github/start/copilot.vim
|
||||
|
||||
{% data reusables.copilot.install-copilot-in-neovim %}
|
||||
- To install {% data variables.product.prodname_copilot %} with Neovim's built-in plugin manager, enter the following command in Git Bash:
|
||||
|
||||
git clone https://github.com/github/copilot.vim.git \
|
||||
$HOME/AppData/Local/nvim/pack/github/start/copilot.vim
|
||||
|
||||
{% data reusables.copilot.config-enable-copilot-in-neovim %}
|
||||
{% data reusables.copilot.config-enable-copilot-in-vimneovim %}
|
||||
|
||||
## Installing the Neovim extension on Linux
|
||||
## Installing the Vim/Neovim extension on Linux
|
||||
|
||||
{% data reusables.copilot.install-copilot-in-vimneovim %}
|
||||
- To install {% data variables.product.prodname_copilot %} with Vim's built-in plugin manager, enter the following command:
|
||||
|
||||
git clone https://github.com/github/copilot.vim \
|
||||
~/.vim/pack/github/start/copilot.vim
|
||||
|
||||
{% data reusables.copilot.install-copilot-in-neovim %}
|
||||
- To install {% data variables.product.prodname_copilot %} with Neovim's built-in plugin manager, enter the following command:
|
||||
|
||||
git clone https://github.com/github/copilot.vim \
|
||||
~/.config/nvim/pack/github/start/copilot.vim
|
||||
|
||||
{% data reusables.copilot.config-enable-copilot-in-neovim %}
|
||||
{% data reusables.copilot.config-enable-copilot-in-vimneovim %}
|
||||
|
||||
## Learning to use {% data variables.product.prodname_copilot %} in Neovim
|
||||
## Learning to use {% data variables.product.prodname_copilot %} in Vim/Neovim
|
||||
|
||||
For guidance on using {% data variables.product.prodname_copilot %} in Neovim, you can view the plugin documentation. To see the documentation, open Neovim and run the following command:
|
||||
For guidance on using {% data variables.product.prodname_copilot %} in Vim/Neovim, you can view the plugin documentation. To see the documentation, open Vim/Neovim and run the following command:
|
||||
|
||||
```
|
||||
:help copilot
|
||||
@@ -408,5 +424,5 @@ For guidance on using {% data variables.product.prodname_copilot %} in Neovim, y
|
||||
- [{% data variables.product.prodname_copilot %}](https://copilot.github.com/)
|
||||
|
||||
|
||||
{% endneovim %}
|
||||
{% endvimneovim %}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ redirect_from:
|
||||
|
||||
{% data variables.product.prodname_copilot %} is trained on all languages that appear in public repositories. For each language, the quality of suggestions you receive may depend on the volume and diversity of training data for that language. For example, JavaScript is well-represented in public repositories and is one of {% data variables.product.prodname_copilot %}'s best supported languages. Languages with less representation in public repositories may produce fewer or less robust suggestions.
|
||||
|
||||
{% data variables.product.prodname_copilot %} is available as an extension in Visual Studio Code, Visual Studio, Neovim and the JetBrains suite of IDEs. For more information, see "[AUTOTITLE](/copilot/getting-started-with-github-copilot)."
|
||||
{% data variables.product.prodname_copilot %} is available as an extension in Visual Studio Code, Visual Studio, Vim, Neovim and the JetBrains suite of IDEs. For more information, see "[AUTOTITLE](/copilot/getting-started-with-github-copilot)."
|
||||
|
||||
### Understanding the differences between {% data variables.product.prodname_copilot_individuals_short %} and {% data variables.product.prodname_copilot_business_short %}
|
||||
|
||||
|
||||
@@ -119,13 +119,13 @@ In rare cases, errors might not be propagated to the corresponding error handler
|
||||
|
||||
{% endvscode %}
|
||||
|
||||
{% neovim %}
|
||||
{% vimneovim %}
|
||||
|
||||
## Checking if {% data variables.product.prodname_copilot%} is operational
|
||||
|
||||
To check if GitHub Copilot is operational, run the following command in Neovim:
|
||||
To check if GitHub Copilot is operational, run the following command in Vim/Neovim:
|
||||
|
||||
|
||||
:Copilot status
|
||||
|
||||
{% endneovim %}
|
||||
{% endvimneovim %}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
1. To configure {% data variables.product.prodname_copilot %}, open Neovim and enter the following command.
|
||||
1. To configure {% data variables.product.prodname_copilot %}, open Vim/Neovim and enter the following command.
|
||||
|
||||
```
|
||||
:Copilot setup
|
||||
```
|
||||
|
||||
1. Enable {% data variables.product.prodname_copilot %} in your Neovim configuration, or with the Neovim command.
|
||||
1. Enable {% data variables.product.prodname_copilot %} in your Vim/Neovim configuration, or with the Vim/Neovim command.
|
||||
|
||||
```
|
||||
:Copilot enable
|
||||
@@ -1 +0,0 @@
|
||||
1. {% data variables.product.prodname_dotcom %} recommends that you install the {% data variables.product.prodname_copilot %} plugin with Neovim's built-in plugin manager. Alternatively, you can use a plugin manager of your choice to install `github/copilot.vim`.
|
||||
1
data/reusables/copilot/install-copilot-in-vimneovim.md
Normal file
1
data/reusables/copilot/install-copilot-in-vimneovim.md
Normal file
@@ -0,0 +1 @@
|
||||
1. {% data variables.product.prodname_dotcom %} recommends that you install the {% data variables.product.prodname_copilot %} plugin with Vim/Neovim's built-in plugin manager. Alternatively, you can use a plugin manager of your choice to install `github/copilot.vim`.
|
||||
@@ -1 +1 @@
|
||||
{% data variables.product.prodname_copilot %} provides suggestions for numerous languages and a wide variety of frameworks, but works especially well for Python, JavaScript, TypeScript, Ruby, Go, C# and C++.
|
||||
{% data variables.product.prodname_copilot %} provides suggestions for numerous languages and a wide variety of frameworks, but works especially well for Python, JavaScript, TypeScript, Ruby, Go, C# and C++. {% data variables.product.prodname_copilot %} can also assist in query generation for databases.
|
||||
|
||||
@@ -9,7 +9,7 @@ export const allTools = {
|
||||
importer_cli: 'GitHub Enterprise Importer CLI',
|
||||
javascript: 'JavaScript',
|
||||
jetbrains: 'JetBrains IDEs (Beta)',
|
||||
neovim: 'Neovim',
|
||||
vimneovim: 'Vim/Neovim',
|
||||
powershell: 'PowerShell',
|
||||
visualstudio: 'Visual Studio',
|
||||
vscode: 'Visual Studio Code',
|
||||
|
||||
Reference in New Issue
Block a user