From 14ac33afa4874e19fabc9cbabb9780e31505d1d4 Mon Sep 17 00:00:00 2001 From: mvllow Date: Wed, 5 Feb 2025 19:36:10 -0600 Subject: [PATCH] fix: strip non-standard blend properties --- lua/rose-pine.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/rose-pine.lua b/lua/rose-pine.lua index 4f4dfdc..8ffa5c0 100644 --- a/lua/rose-pine.lua +++ b/lua/rose-pine.lua @@ -1122,9 +1122,14 @@ local function set_highlights() if config.options.before_highlight ~= nil then config.options.before_highlight(group, highlight, palette) end + if highlight.blend ~= nil and (highlight.blend >= 0 and highlight.blend <= 100) and highlight.bg ~= nil then highlight.bg = utilities.blend(highlight.bg, highlight.blend_on or palette.base, highlight.blend / 100) end + + highlight.blend = nil + highlight.blend_on = nil + vim.api.nvim_set_hl(0, group, highlight) end