color_coded
color_coded copied to clipboard
Cquery Support
Hi,
Is it possible to utilize the cquery language server (which uses the clang as well) to provide c++/c semantic highlighting?
Right now I have three copies of clang in my system..
Hey there! This is something, in general, which has been discussed many times. I'd love for color_coded to not have its own copy of clang, and I'd really love to be able to use YouCompleteMe to get access to the AST. There's even a similar project to color_coded which does this, using its own fork of YCM.
Moving forward, coming up with a solution to this, whether it's YCM or not, will be a good move for color_coded. I'm not writing C++ much these days, so most of the development done is by the community (and a couple heroes in particular). Let's leave this discussion open and see what comes from it.
There is currently a proposal to standardize this in the language server protocol.
But I am not sure if implementing this (or just the cquery implementation) is in scope for this plugin as this would be pretty much a complete rewrite. Maybe this should be part of lsp client plugins for vim/nvim, as they already handle the management of the language servers.
@jeaye in my humble opinion, if color_coded can add an options for using cquery-clang (the clang compiled by cquery) that would be great already! YCM just seems too huge for me and I never get it working properly..
@UnrealQuester Yes, there is still a lot of debate whether the syntax highlighting should be part of language server protocol ( I believe it is ). However, the actual displayed is tightly coupled with editor itselves.