-
Hi ! is there something that I could change inside metals' options in order to not change the colors of the token when loaded ? out.mp4If this is not something directly related to nvim-metals, do any of you have an idea of where this is coming from ? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hey @ex0ns! This is a metals feature called semantic tokens. It used to be off by default, but it has recently been turned on by default in Metals. If you want to turn it off you can set |
Beta Was this translation helpful? Give feedback.
-
This was exactly this settings, thanks ! And regarding the example, I agree that using protoquill codebase as an example might not be the best reproducer, but this was what I was working on as of writing, I will see if I can reproduce on other smaller project and maybe open an issue in metals ! |
Beta Was this translation helpful? Give feedback.
Hey @ex0ns! This is a metals feature called semantic tokens. It used to be off by default, but it has recently been turned on by default in Metals. If you want to turn it off you can set
enableSemanticHighlighting = false
in your config settings. I do that as well since I prefer the treesitter highlighting. With that being said, what you're seeing actually looks like a bug in Metals. I'd recommend actually opening an issue upstream in Metals with a minimal example showing this since that's obviously not what you want to see 😆 .