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

Highlighting group for virtual methods (clangd) #60

Open tom-anders opened 3 years ago

tom-anders commented 3 years ago

I know this feature from QtCreator where the is a separate highlight group for virtual methods. Since AFAIK QtCreator uses clangd for semantic highlighting, would this also be possible with vim-lsp-cxx-highlight when using clangd?

jackguo380 commented 3 years ago

Hi tom-anders,

I would like to support it, but looking into the data provided by clangd, I don't see anything that differentiates a regular method from a virtual one. So currently there would be no way to implement this.

I'll leave this open for now incase I find more info.

tom-anders commented 3 years ago

Looks like it was added in https://github.com/llvm/llvm-project/commit/159a26964840c456f92387c6705ffff57e7174d4#diff-4dd31d5b67755887cd20bfeb19b44366280a85979fe6d559cc61ea82b639d117

but probably only for the new semanticTokens lsp feature which this plugin doesn’t support, right?