jackguo380 / vim-lsp-cxx-highlight

Vim plugin for C/C++/ObjC semantic highlighting using cquery, ccls, or clangd
MIT License
337 stars 26 forks source link

Support for clangd-13 #82

Open aganm opened 2 years ago

aganm commented 2 years ago

It seems like this plugin only works with clangd-12. I like to use clangd-13 because it adds a few important features. Is there any chance this plugin would add support for clangd-13 as well?

jackguo380 commented 2 years ago

Hi @aganm

I'm guessing you already have the configuration mentioned in the README?

{
    "clangd.semanticHighlighting": true,
    "coc.preferences.semanticTokensHighlights": false
}

If so and clangd-13 still does not work that means they have completely removed the legacy highlighting functionality. I have mentioned this in a few other issues, but if clangd stopped supporting the old semantic highlight protocol then I will not update this plugin for it as the new semantic tokens protocol is too complex to support without being a full LSP client.

Please have a look in #74 and the threads it links to and see if there's a solution in one of them.