docs: add highlight group examples with blend and inherit options

This commit is contained in:
mvllow 2025-02-25 19:58:52 -06:00
commit 44739383b9

View file

@ -27,8 +27,8 @@ Install `rose-pine/neovim` using your favourite package manager:
```lua ```lua
-- lua/plugins/rose-pine.lua -- lua/plugins/rose-pine.lua
return { return {
"rose-pine/neovim", "rose-pine/neovim",
name = "rose-pine", name = "rose-pine",
config = function() config = function()
vim.cmd("colorscheme rose-pine") vim.cmd("colorscheme rose-pine")
@ -123,9 +123,13 @@ require("rose-pine").setup({
-- }, -- },
}, },
-- NOTE: Highlight groups are extended (merged) by default. Disable this
-- per group via `inherit = false`
highlight_groups = { highlight_groups = {
-- Comment = { fg = "foam" }, -- Comment = { fg = "foam" },
-- StatusLine = { fg = "love", bg = "love", blend = 15 },
-- VertSplit = { fg = "muted", bg = "muted" }, -- VertSplit = { fg = "muted", bg = "muted" },
-- Visual = { fg = "base", bg = "text", inherit = false },
}, },
before_highlight = function(group, highlight, palette) before_highlight = function(group, highlight, palette)