zbirenbaum / zbirenbaum/copilot.lua

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

Open
#290 0 comments 2 reactions 1 assignee View on GitHub

@AntoineGS is already working on this.

Since Mar 25, 2025.

enhancement
Dominant language
Lua
Stars
4.1k
Forks
161
Avg merge
11h 54m
Merged PRs (30d)
13

Description

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! :)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.