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

nvim_lsp changed its name, resulting in "No LSP plugin found!" in vim-ccls #39

Closed
vgeof opened this issue Nov 20, 2020 · 2 comments · Fixed by #40
Closed

nvim_lsp changed its name, resulting in "No LSP plugin found!" in vim-ccls #39

vgeof opened this issue Nov 20, 2020 · 2 comments · Fixed by #40
Assignees
Labels
bug Something isn't working

Comments

@vgeof
Copy link

vgeof commented Nov 20, 2020

Hello,
The package nvim-lsp changed its name into lspconfig a few days ago (neovim/nvim-lspconfig@ddcd9e6). So I get the message "No LSP plugin found" when trying to do a call hierarchy.

I found a quick workaround to be able to use call hierarchies again:

diff --git a/autoload/ccls/lsp.vim b/autoload/ccls/lsp.vim
index ff8d7c6..3a7b31c 100644
--- a/autoload/ccls/lsp.vim
+++ b/autoload/ccls/lsp.vim
@@ -95,7 +95,7 @@ function! ccls#lsp#request(bufnr, method, params, handler) abort
catch
call ccls#util#warning('LSP error')
endtry

  • elseif get(g:, 'nvim_lsp', v:false)
  • elseif get(g:, 'lspconfig', v:false)
    " Use nvim-lsp
    let l:call_id = ccls#lsp#nvim_lsp#register(a:handler)
    let l:args = [a:bufnr, a:method, a:params, l:call_id]
@m-pilia m-pilia self-assigned this Nov 21, 2020
@m-pilia m-pilia added the bug Something isn't working label Nov 21, 2020
@m-pilia
Copy link
Owner

m-pilia commented Nov 21, 2020

Thanks @vgeof for the report. I will fix this soon.

@vgeof
Copy link
Author

vgeof commented Nov 30, 2020

Thanks a lot !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants