simrat39 / rust-tools.nvim

Tools for better development in rust using neovim's builtin lsp
MIT License
2.17k stars 160 forks source link

fix: set capability `augmentSyntaxTokens` to false #390

Open willothy opened 1 year ago

willothy commented 1 year ago

Problem: rust-analyzer does not output semantic highlights for every token if the client registers the augmentSyntaxTokens capability, leading to keywords such as dyn and as being highlighted improperly.

Solution: Explicitly disable the capabilty in setup_capabilities().

Before: before

After: after