You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deprecate the 'semantic_tokens' config option in favor of 'augmentsSyntaxTokens' #2527
See my initial PR #2350 which revealed some problems when using with CoC or the builtin LSP in Neovim:
Vim defines preferred highlighting groups to share group names between many languages. The conventions that have been established by many syntax highlighting configurations are incompatible with LSP semantic highlighting and will result in poor highlighting when mixed together.
The only LSP that I know of which uses augmentsSyntaxTokens is rust-analyzer. And the rust-lang/rust.vim plugin has some relatively unique choices where it maps a lot more keywords to the Keyword highlighting group compared to other languages. That may explain why rust doesn't suffer from the same issue. This needs some more thorough research.
Possible solutions:
do nothing
document that augmentsSyntaxTokens should be manually disabled by the user with ZLS + NeoVim/CoC
ignore the augmentsSyntaxTokens capability when used with Neovim or CoC
get Neovim and CoC to adjust how they handle augmentsSyntaxTokens or just disable it (unless tree-sitter is used)
Activity