For the LSP semantic tokens feature, https://neovim.io/doc/user/lsp.html#lsp-semantic-highlight supports highlight groups @lsp.typemod.<type>.<mod>.<ft>, derived from both token type and modifier, which can be used to customize highlighting for, for example, @lsp.typemod.variable.namespaceScope.cpp.
For the LSP semantic tokens feature, https://neovim.io/doc/user/lsp.html#lsp-semantic-highlight supports highlight groups
@lsp.typemod.<type>.<mod>.<ft>
, derived from both token type and modifier, which can be used to customize highlighting for, for example,@lsp.typemod.variable.namespaceScope.cpp
.In contrast, lsp-mode just uses a face name derived from the modifier. The Neovim style
typemod
can be used to implement rainbow semantic highlighting https://maskray.me/blog/2024-10-20-ccls-and-lsp-semantic-tokens#emacs-ccls