-
Notifications
You must be signed in to change notification settings - Fork 171
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
Add support for Neovim's native LSP semantic tokens #162
Add support for Neovim's native LSP semantic tokens #162
Conversation
06e4c3a
to
d1a08a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! One minor comment.
d1a08a0
to
5c4fb99
Compare
This doesn't actually work with native LSP--the groups added in this PR were for the old plugin which is deprecated. New built-in support uses @token syntax. |
@jdrouhard is there any difference between Treesitter groups and LSP groups? Regardless, I think we can keep those around until Neovim 0.9 gets released. |
They follow the same format and largely intersect, but there are some that are specific to LSP. The token types and modifiers are applied directly as highlight groups prepended with |
This adds proper highlighting to Neovim's native LSP client semantic tokens. Tested with theHamsta/nvim-semantic-tokens.
Need to test with neovim/neovim#21100 in Neovim Nightly.