fix: allow partial overrides for nested groups

This commit is contained in:
mvllow 2021-11-08 16:50:51 -06:00
commit 7b5ba94aa9

View file

@ -8,7 +8,7 @@ local groups = {
info = user_colors.info or p.foam,
warn = user_colors.warn or p.gold,
error = user_colors.error or p.love,
headings = user_colors.headings or {
headings = {
h1 = p.love,
h2 = p.rose,
h3 = p.iris,
@ -17,6 +17,12 @@ local groups = {
},
}
groups.headings = vim.tbl_extend(
'force',
groups.headings,
user_colors.headings or {}
)
local theme = {}
local maybe_base = p.base
local maybe_italic = 'italic'