theme: question on how to target identifier highlight #11504
-
hi, I use some theme but have trouble on some highlight because it is blend in with my terminal themes see the word |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use the |
Beta Was this translation helpful? Give feedback.
You can use the
:tree-sitter-highlight-name
command to figure out the theme key under the cursor.identifier
is the name of the node in the syntax tree. Syntax highlight works by running a tree-sitter query like https://github.com/helix-editor/helix/blob/master/runtime/queries/go/highlights.scm over the tree and the@capturename
captures in that file are the theme keys. So anidentifier
might be mapped to a theme key ofvariable
,function
or something else depending on the context it's used in