Skip to main content

Configuring GitHub Copilot in Neovim

You can enable, configure, and disable GitHub Copilot in Neovim.

GitHub Copilot is available to GitHub customers with a personal account on GitHub.com. GitHub Copilot is free to use for verified students and open source maintainers. If you are not a student or open source maintainer, you can try GitHub Copilot for free with a one-time 60 day trial. After the free trial, you will need a paid subscription for continued use. For more information, see "About billing for GitHub Copilot."

Configuring GitHub Copilot in Neovim

For guidance on configuring GitHub Copilot in Neovim, invoke the GitHub Copilot documentation in Neovim by running the following command.

:help copilot

Configuring GitHub Copilot settings on GitHub.com

Once you have an active GitHub Copilot trial or subscription, you can adjust GitHub Copilot settings for your personal account on GitHub. The settings apply anywhere that you use GitHub Copilot. You can configure the suggestions that GitHub Copilot offers and how GitHub uses your telemetry data.

Enabling or disabling duplication detection

  1. In the upper-right corner of any page, click your profile photo, then click Settings.

    Settings icon in the user bar

  2. In the left sidebar, click Copilot.

  3. Under Suggestions matching public code, select the dropdown menu and click Allow to allow suggestions matching public code, or Block to block suggestions matching public code. Screenshot of duplication detection option

  4. To confirm your new settings, click Save.

Enabling and disabling telemetry

  1. In the upper-right corner of any page, click your profile photo, then click Settings.

    Settings icon in the user bar

  2. In the left sidebar, click Copilot.

  3. To allow or prevent GitHub using your telemetry data, next to Allow GitHub to use my telemetry for product improvements, select or deselect the checkbox. Screenshot of telemetry option

  4. To confirm your new settings, click Save.