projekt0n / github-nvim-theme

Github's Neovim themes
MIT License
2.02k stars 104 forks source link

fix(syntax-hl): set `nocombine` on Comment #296

Closed tmillr closed 10 months ago

tmillr commented 10 months ago

For Comment, don't inherit style attributes (e.g. bold, italic) from other (e.g. overlayed) hl groups. For example, an inline-comment appearing after a markdown heading in a markdown file (heading highlighting extends to the end of the text line, including comments) can become/display bold due to inheriting style attributes. nocombine keeps this from happening.

tmillr commented 10 months ago

Before and after (markdown heading)

Before

Screenshot 2023-09-06 at 7 26 42 AM

After

Screenshot 2023-09-06 at 7 08 37 AM