Customise color
#286
-
Beta Was this translation helpful? Give feedback.
Answered by
mvllow
Jul 13, 2024
Replies: 1 comment 1 reply
-
Thank you for the kind words :) From the docs: require("rose-pine").setup({
before_highlight = function(group, highlight, palette)
-- Change palette colour
if highlight.fg == palette.pine then
highlight.fg = palette.foam
end
end,
}) This has been requested so I am considering an easier way to modify the palette but until then: require("rose-pine").setup({
before_highlight = function(group, highlight, palette)
-- Change palette colour
-- Optionally, only apply on light background (e.g. when using Dawn)
-- if vim.o.background == "light" then
if highlight.fg == palette.gold then
highlight.fg = "#fa8072"
end
-- end
end,
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
en3sis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for the kind words :)
From the docs:
This has been requested so I am considering an easier way to modify the palette but until then: