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
I am not sure, if this is the place to ask for this but; is it possible to have different colours depending not only on Treesitter, but on both Treesitter & Syntax?
This is even an issue for me when highlighting some c code. It most likely can be configured with the treesitter setup but I have no idea as I don't use lsp and treesitter.
I am not sure, if this is the place to ask for this but; is it possible to have different colours depending not only on
Treesitter
, but on bothTreesitter
&Syntax
?Here is a sample code from Ruby on Rails project:
Playground data
scope
hello
As shown above, Treesitter thinks both
scope
andhello
is aTSFunction
–which is technically true–, but they are not only aTSFunction
:scope
is aTSFunction
andrubyMacro
.hello
is aTSFunction
andrubyMethodName
.I hoped maybe
lua/solarized/solarized-normal/highlights.lua
file is similar to how CSS works and assigning Ruby specific colours afterTSFunction
likecan change how words are highlighted, but that did not work.
So, is it possible to override
Treesitter
highlighting with theSyntax
one, whenever it is needed?The text was updated successfully, but these errors were encountered: