zbirenbaum / copilot.lua

Fully featured & enhanced replacement for copilot.vim complete with API for interacting with Github Copilot
MIT License
2.43k stars 65 forks source link

auto login #221

Closed janvanveldhuizen closed 8 months ago

janvanveldhuizen commented 8 months ago

Every time I start nvim, I have to use the :copilot auth command. Where do I need to add this command in order to run it automatically at login?

MunifTanjim commented 8 months ago

You need to only run it once. You shouldn't have to run it each time you start neovim. Something's wrong on your machine.

janvanveldhuizen commented 8 months ago

I have been testing a bit with it today. It looks like it is related to the lazy loading of the plugin. I just need to have a bit of patience. Or can I switch off lazy loading for this particular plugin to be sure it is active? Or is there any notification possible to give an alert when the plugin is ready for use?

MunifTanjim commented 8 months ago

How are you lazy loading it? If you follow the instructions in README.md, it should work as expected.

janvanveldhuizen commented 8 months ago

Yes. I reinstalled the whole thing, and it works perfectly now.