zbirenbaum / copilot.lua

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

Copilot is "Offline" when used along with `hinell/lsp-timeout.nvim` #290

Open serhez opened 1 month ago

serhez commented 1 month ago

hinell/lsp-timeout.nvim is a plugin which times-out LSP servers in order to save RAM when the nvim instance is not being focused. The servers are restarted when the instance is focused again. It works with all servers I use, but it does not seem to work well with this plugin. When servers are restarted, the Copilot status is "Offline", trying to run Copilot! attach returns "Offline" and does not restart Copilot. Every time this happens, I have to quit nvim and open it again in order to use Copilot.

Any ideas why this may be happening? Is there any way to restart Copilot the hard way? Could this be done automatically?

Thank you! :)