Skip to content

How to configure Copilot to automatically enable when nvim starts? #261

Answered by MunifTanjim
joehdodd asked this question in Q&A
Discussion options

You must be logged in to vote

You've set cmd = "Copilot", and event = "InsertEnter".

So copilot will either load when:

  • You run a :Copilot command
  • Or you've opened a file and entered Insert mode

If you don't wanna lazy load copilot, remove those 2 options, then copilot will start as soon as neovim is open.

Also copilot server will only run when you've actually opened a file. Otherwise, it'll just wait for you to open a file.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@joehdodd
Comment options

Answer selected by joehdodd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants