1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Files
docs/content/copilot/getting-started-with-github-copilot/getting-started-with-github-copilot-in-neovim.md
Jules 0404af1924 Copilot for Business (#32667)
Co-authored-by: Sais <92322374+saisdavid@users.noreply.github.com>
Co-authored-by: hubwriter <hubwriter@github.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Felicity Chapman <felicitymay@github.com>
Co-authored-by: Sophie <29382425+sophietheking@users.noreply.github.com>
2022-12-07 17:16:11 +00:00

2.6 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.
feature
copilot
Copilot

{% data reusables.copilot.copilot-cta-button %}

About {% data variables.product.prodname_copilot %} and Neovim

{% data reusables.copilot.procedural-intro %}

If you use a 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 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 %}

{% 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 %}

{% endmac %}

{% windows %}

{% 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 %}

{% endwindows %}

{% linux %}

{% 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 %}

{% endlinux %}

Learning to use {% data variables.product.prodname_copilot %} in 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.

:help copilot

Further reading