mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
add highlight groups
This commit is contained in:
parent
fb0231471f
commit
3f97c6dedc
2 changed files with 10 additions and 1 deletions
|
|
@ -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')
|
||||||
|
|
|
||||||
|
|
@ -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' }
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue