add highlight groups (#74)

This commit is contained in:
not 2022-04-01 11:28:34 -05:00 committed by GitHub
commit e153a6b7eb
2 changed files with 10 additions and 1 deletions

View file

@ -134,6 +134,7 @@ local config = {
h6 = 'foam',
},
},
highlight_groups = {},
}
---@param opts RosePineConfig
@ -171,7 +172,11 @@ function M.colorscheme()
local theme = require('rose-pine.theme').get(config)
for group, color in pairs(theme) do
util.highlight(group, color)
if config.highlight_groups[group] ~= nil then
util.highlight(group, config.highlight_groups[group])
else
util.highlight(group, color)
end
end
require('rose-pine.galaxyline.theme')

View file

@ -119,6 +119,10 @@ require('rose-pine').setup({
}
-- or set all headings at once
-- headings = 'subtle'
},
-- Change specific vim highlight groups
highlight_groups = {
ColorColumn = { bg = 'rose' }
}
})