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
semanticTokenTypes is only part of what gets highlighted. There are both Semantic Tokens and TextMate Tokens that can be highlighted by ColorMate, and both have default values.
You're probably running up against the entity.name.function TextMate token.
You can either:
Exclude entity.name.function from colormate.excludedTextMateTokenScopes.
Set colormate.hasDefaultTextMateTokenScopes which removes all defaults.
ColorMate targets both token types because semantic tokens miss a lot and don't allow the same fine-grained granularity that TextMate tokens have. The only issue is that TextMate tokens are per-language plugin whereas Semantic Tokens are both generic and global (which is why there's also an option to disable ColorMate on specific languages).
Changing the Color Theme (hashing algorithm)
You can change the Lighting and Saturation for both light and dark themes, but I haven't included a way to modify the CRC8 color hashes. It's literally a 100% conversion
It's literally as simple as this with a CRC8 hex hookup table for each red, green, and blue value:
character.charCodeAt(0)%256
If it's a big thing for you, you could submit a PR to add a way to change it. Either change the CRC8 algorithm or add your own.
The way this works is based on how Colorcoder worked for Sublime Text. I got so used to those colors that I transplanted that Python algorithm into JS and surprisingly got it to work.
That's kinda of all in the title :). My settings only have property in the parameters but function names are still highlighted in python.
Also, is it possible to specify a color theme? The default one is kinda clashing with my base color theme.
The text was updated successfully, but these errors were encountered: