sainnhe / gruvbox-material

Gruvbox with Material Palette
MIT License
1.96k stars 166 forks source link

Feature request: rainbow headings for markdown with treesitter #196

Closed flexagoon closed 9 months ago

flexagoon commented 9 months ago

Currently, all headings in Markdown are the same color when using treesitter, but not when using regular highlighting. It would be nice to use rainbow heading with markdown-treesitter as well.

antoineco commented 9 months ago

Sounds reasonable 👍 This is achievable by setting the @markup.heading.1.markdown, @markup.heading.2.markdown, @markup.heading.3.markdown`, etc. highlight groups to different colors.

How it looks with the native Vim syntax, for reference:

image