-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Existing language server instances with different root_dir
s are reused, out of accordance with lspconfig's documentation
#3531
Comments
Please try latest Nvim 0.11 from https://github.com/neovim/neovim/releases , using the The "manager" part of nvim-lspconfig is deprecated #3494 in favor of the |
I'm using nightly, and yes, the |
Having the same issue, if I upgrade to 0.11, my issue will be resolved? Or will I need to change config as well? Thanks! |
You'll have to change your config. I don't believe lspconfig provides a way to override |
This comment has been minimized.
This comment has been minimized.
work around if anyone is looking for one.. |
Description
This is essentially a duplicate of #2967 which was incorrectly closed (lspconfig does indeed manage launching of servers.).
The help docs for lspconfig say:
nvim-lspconfig/doc/lspconfig.txt
Lines 62 to 63 in 57154fd
But this is not the case. See the following code which causes existing language servers with the same name to be reused.
nvim-lspconfig/lua/lspconfig/manager.lua
Lines 133 to 136 in 57154fd
Either the code should be updated to match the docs, or the docs should be corrected and a new flag should be added to indicate that unique root dirs should always launch new language server instances. I am happy to try out a PR if the maintainers have a preference for either of those solutions.
The text was updated successfully, but these errors were encountered: