How to restart lsp

I occasionally get errors when switching buffers:

and was wondering how to simply restart the lsp?

Seems like an error in your configuration, maybe on_attach

If you’re using nvim-lspconfig

  • LspRestart <optional client id>
  • LspStart <client name>
  • LspStop
2 Likes