hinell / lsp-timeout.nvim

Start/stop LSP servers upon demand; keeps RAM usage low
Other
211 stars 6 forks source link

Lots of LSP not restarting. #9

Closed ls-devs closed 11 months ago

ls-devs commented 11 months ago

Summary

Lots of LSP not restarting.

Before timeout : Capture d’écran 2023-10-19 à 16 13 21

After timeout : Capture d’écran 2023-10-19 à 16 24 35

lsp-timeout config :

  vim.g["lsp-timeout-config"] = {
    stopTimeout = 1000 * 60 * 5, -- ms, timeout before stopping all LSP servers
    startTimeout = 1000 * 10,  -- ms, timeout before restart
    silent = false,            -- true to suppress notifications
  }

Package manager : LazyNvim Actually using lsp-zero if it can help

Steps to reproduce

.

Versions

NVIM v0.10.0-dev-1379+ga8fc94a2f-dirty Build type: RelWithDebInfo LuaJIT 2.1.1696795921

ls-devs commented 11 months ago

My bad, the restart timeout was just too long and couldnt notice it. Sorry for bothering you with a dumb issue.

hinell commented 11 months ago

For future: set timeouts to 1000 * 2 for quick troubleshooting.