LSP and semantic token support

LSP protocol v3.16 (Specification) supports semantic token information. Does the nvim lsp client support this feature? I’m mainly interested in clangd (v13) as the LSP and I think it requires certain features in the client for the info stream to be enabled.

I’m also fairly unclear how semantic tokens would or would not cooperate with treesitter (say for cpp) - if anyone has advice about whether it will make sense to use both or only one of these sources of semantic highlighting, please advise.

It’s not part of neovim 0.5 but it is being worked on (https://github.com/neovim/neovim/pull/14122)

This comment https://github.com/neovim/neovim/pull/14122#issuecomment-843466337 might answer your question how it might interact with treesitter

2 Likes