-
-
Notifications
You must be signed in to change notification settings - Fork 884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to achieve different colors for arguments and local variables? Java parser #255
Comments
The highlights for argument is TSParameter you can configure it freely and locals currently have no highlight. |
Some symbols may not be highlighted after enabling the feature on the fly, you can try forcing the buffer to reload You can modify the highlight groups defined in https://github.com/nvim-treesitter/nvim-treesitter/blob/master/plugin/nvim-treesitter.vim#L25-L75 as you like (like marking some elements with italics). |
I've looked into the field groups that you are trying to use and it looks like they don't necessarily line up. TSMethod -> works. We can update the queries to better match the expected highlight groups, or at least add documentation so that users know which to use. |
surely, because atleast TSParameter works for me (java) |
Regarding to config, I've pasted what is defined in the readme's setup.
java parser healthcheck
highlights.scm
found.locals.scm
found.textobjects.scm
query found for javacolorscheme
sublimemonokai
TSBufEnable highlight
TSBufDisable highlight
The differences are:
Main
from non-italic to italic.void
from non-italic to italic.String
from non-italic to italic.main
.colorscheme
default
TSBufEnable highlight
TSBufDisable highlight
The differences are:
Main
.static
.void
.main
.String[]
.args
.String
and variable nameelement
.The text was updated successfully, but these errors were encountered: