add highlight groups

This commit is contained in:
mvllow 2022-04-01 12:27:52 -04:00
commit 3f97c6dedc
2 changed files with 10 additions and 1 deletions

View file

@ -134,6 +134,7 @@ local config = {
h6 = 'foam', h6 = 'foam',
}, },
}, },
highlight_groups = {},
} }
---@param opts RosePineConfig ---@param opts RosePineConfig
@ -171,7 +172,11 @@ function M.colorscheme()
local theme = require('rose-pine.theme').get(config) local theme = require('rose-pine.theme').get(config)
for group, color in pairs(theme) do 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 end
require('rose-pine.galaxyline.theme') require('rose-pine.galaxyline.theme')

View file

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