Skip to content

[mini.hues] What is the recommended method to add additional highlight groups? #784

Closed Answered by echasnovski
pkazmier asked this question in Q&A
Discussion options

You must be logged in to vote

What is the recommended method of adding additional highlight groups using the same palette on top of the existing ones provided by mini.hues?

In most themes I've used before, usually there is a means to add your own highlights via a function that is called with the theme's palette of colors, so one can define/override groups using the same palette.

Would the current recommended approach be:

  1. Call setup with standard config.

  2. Call make_palette with the same config. Seems silly as setup already did this, but I have no means to obtain a reference to the palette.

  3. Make a bunch of vim.api.nvim_set_hl calls using colors referenced from step 2.

Yes, this is the recommended way at the mom…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by echasnovski
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants