luisiacc / gruvbox-baby

Gruvbox theme for neovim with full 🎄TreeSitter support.
MIT License
390 stars 28 forks source link

Highlight `plain_value` in css #41

Open gaoDean opened 1 year ago

gaoDean commented 1 year ago

So the objective here is to highlight the not-highlighted stuff here:

Screen Shot 2022-10-24 at 5 47 07 pm

As you can see in this screenshot, the 'field' I'm trying to highlight is plain_value, which I would like to know how to highlight. This is kind of a generic treesitter question, but we could improve this plugin's css treesitter highlighting with this as well.

Screen Shot 2022-10-24 at 5 47 56 pm
Pukkah commented 3 months ago

This would require adding a custom tree-sitter query in after/queries/css/highlights.scm

; extends

(declaration (plain_value) @highlight)

Where @highlight is the desired highlight.

luisiacc commented 3 months ago

This would require adding a custom tree-sitter query in after/queries/css/highlights.scm

; extends

(declaration (plain_value) @highlight)

Where @highlight is the desired highlight.

@gaoDean I'd use this in the meantime