ccls.nvim icon indicating copy to clipboard operation
ccls.nvim copied to clipboard

Feature Request: Support coc.nvim

Open lanza opened this issue 1 year ago • 2 comments

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.

lanza avatar Aug 29 '22 21:08 lanza

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

ranjithshegde avatar Aug 30 '22 14:08 ranjithshegde

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

lanza avatar Dec 07 '22 03:12 lanza