highlight_groups now gives option to set new opts while respecting defaults.

You now need to opt out of respect_default_hightlight_groups if you'd like
highlight_group settings to be fully overwritten (even for options you
didn't touch).
This commit is contained in:
KaosBunny 2023-07-14 11:32:40 +12:00
commit 36e1022f5d
3 changed files with 585 additions and 560 deletions

View file

@ -56,6 +56,10 @@ M.options = {
},
},
-- Whether highlight group settings will respect default highlight_groups and
-- only update options set in the high_light groups table.
respect_default_highlight_groups = true,
---@type table<string, Color>
highlight_groups = {},
}

File diff suppressed because it is too large Load diff

View file

@ -93,6 +93,10 @@ require('rose-pine').setup({
-- headings = 'subtle'
},
-- Whether or not highlight_groups optios should change only only update
-- the settings they touch or should reset the entire highlight_group.
respect_default_highlight_groups = true,
-- Change specific vim highlight groups
-- https://github.com/rose-pine/neovim/wiki/Recipes
highlight_groups = {