Skip to content

Default Heading highlight group configuration #291

Discussion options

You must be logged in to vote

Yeah, I can explain what's going on here.

This plugin adopts a common pattern for making plugins have some default color setup while allowing color scheme authors to set plugin specific values. This is done through "default link" highlight groups.

So as a base if your color scheme does not specify a value for "RenderMarkdownH1Bg" the color for "DiffAdd" will be used as a fallback, which every color scheme should define (though not all do).

This also lets you as a user modify the color used by either modifying the call to setup where "RenderMarkdownH1Bg" is set and changing it to any other highlight group, or you can directly set a value for "RenderMarkdownH1Bg" using the vim api:

vim.api.n…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@gibbage
Comment options

@srackham
Comment options

@MeanderingProgrammer
Comment options

@srackham
Comment options

@srackham
Comment options

Answer selected by gibbage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants