Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

semantic tokens: face name derived from both token type and modifier #4590

Open
MaskRay opened this issue Oct 22, 2024 · 0 comments
Open

semantic tokens: face name derived from both token type and modifier #4590

MaskRay opened this issue Oct 22, 2024 · 0 comments

Comments

@MaskRay
Copy link
Member

MaskRay commented Oct 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant