More granular highlight groups in Treesitter


How can I achieve regular regex based color scheme in treesitter?

I’m so used to having more color variety per treesitter’s highlight group.

Here’s some things I couldn’t re-create:

  • control flow part of TSKeyword in red, but const, typeof, instanceof, etc. in cyan
  • yellow and bold [] and {}, but not ()
  • colored JSX props, but grey object keys
  • built-in APIs and classes as green
  • grey dots but red semicolon

Picture, where I tried my best to make it similar, but failed miserably. :slight_smile:

Would be really cool to be able to customize it better. :slightly_smiling_face:


1 Like