ranjithshegde / ccls.nvim

Neovim plugin for ccls language server. Leverages off-spec extensions to LSP client with AST browser
GNU General Public License v2.0
69 stars 2 forks source link

Feature Request: Support coc.nvim #8

Open lanza opened 2 years ago

lanza commented 2 years ago

coc.nvim is a popular alternative to the packaged LSP for neovim. It offers a standard API to query the language server as you'd expect. ccls's own documentation explains how one would setup coc.nvim for ccls itself.

ranjithshegde commented 2 years ago

It should be possible. But I am not familiar with coc.nvim.

Judging by the link you sent me, coc has the interface to initiate ccls/someCommand. But in the example its wrapped inside CocLocations. I need an interface to call it directly with the handler used inside this plugin. And then convert the resulting json into lua tables and pass it on to other functions in the plugin.

Will have a look when I have some more time. Looking at coc lsp codebase I should be able leverage something with CocAyncRequest

lanza commented 1 year ago

This seems to be where vim-ccls handles the same issue. Does that make sense?

https://github.com/m-pilia/vim-ccls/blob/b8e3afaca0578ce96f8d7eefd2093e7594a19424/autoload/ccls/lsp.vim#L75