How to disable lsp / stop the server?
I do not need it running always. It's not rare for it to hang for a short time and it gives out diagnostics on save and it's jarring and not needed all time. How do I disable it dynamically? (not the LspDiag highlight disable which doesn't stop diagnostics.)
I am kind of curious about this too. I was trying this plugin out and a little surprised it didn't give an ability to turn off once it's used. I can see how some folks just leave it permanently off but I think there should be a way to turn it off without restarting Vim.
I would also like to be able to stop the server.
Sometimes, especially when starting a new C project, I don't have all the necessary LSP stuff set up, so the diagnostics are erroneous. It would be great if there were a command, e.g. LspServer stop, to just disable the language server temporarily in this case.
I have added support for stopping and starting the server using the :LspServer stop and :LspServer start commands in https://github.com/yegappan/lsp/commit/e84b35b3c105108d7fdc97574ce132e8011715a7. Can you try the latest plugin?
I tried it and it works perfectly, thanks!