Skip to content

Customise color #286

Answered by mvllow
en3sis asked this question in Q&A
Jul 13, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@en3sis
Comment options

Answer selected by en3sis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants