MeanderingProgrammer / render-markdown.nvim

Plugin to improve viewing Markdown files in Neovim
MIT License
1.73k stars 38 forks source link

[qeustion] fg/bg for the head icon only? #51

Closed xixiaofinland closed 4 months ago

xixiaofinland commented 4 months ago

I'd like to tweak the fg/bg color for the head icon only instead of the entire heading line.

It seems highlights.heading.backgrounds and highlights.heading.backgrounds update the entire line?

MeanderingProgrammer commented 4 months ago

Hi, good question, I confused myself for a bit here. Will improve the documentation!

highlights.heading.foregrounds applies to the icon only.

Since by default I use the same highlight as the heading, i.e. markdownH1 for H1s it looks like the foreground stretches the whole line as well, but it does not.

If you change the value for highlights.heading.foregrounds you should see a different icon color, with no change to the actual heading text.

MeanderingProgrammer commented 4 months ago

Following the latest refactor to group by components the thing you want to modify is heading.foregrounds.

xixiaofinland commented 4 months ago

works like a charm, thanks!