diff --git a/lua/rose-pine.lua b/lua/rose-pine.lua index 0fa9c0a..ca82387 100644 --- a/lua/rose-pine.lua +++ b/lua/rose-pine.lua @@ -73,13 +73,19 @@ function M.colorscheme() vim.g.colors_name = 'rose-pine' local theme = require('rose-pine.theme').get(config) + + -- Set theme highlights for group, color in pairs(theme) do - if config.highlight_groups[group] ~= nil then - util.highlight(group, config.highlight_groups[group]) - else + -- Skip highlight group if user overrides + if config.highlight_groups[group] == nil then util.highlight(group, color) end end + + -- Set user highlights + for group, color in pairs(config.highlight_groups) do + util.highlight(group, color) + end end return M