Skip to content
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

Better detection of available LSP client #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

walkerlala
Copy link

Modify function ccls#lsp#request so that when the current vim has both vim-lsp / nvim-lspconfig plugins loaded, we can correctly detect the one truely in-use.
Still prefer vim-lsp to nvim-lspconfig, though.

In my senario, I have both vim-lsp and nvim-lspconfig loaded, but I actually use and configure the nvim-lspconfig. The vim-lsp is not used and not configured. Calling :CclsCallHierarchy give me a confusing "ccls language server unvailable" errmsg.

It seems that we are using "exists('*lsp#send_request')" to check whether vim-lsp is usable and go in to the deap branch too early.

Modify function ccls#lsp#request so that when the current vim
has both vim-lsp / nvim-lspconfig plugins loaded, we can correctly
detect the one truely in-use.
Still prefer vim-lsp to nvim-lspconfig, though.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant