From e92093c5575fd15744b4af9bd05244404918405b Mon Sep 17 00:00:00 2001 From: Pocco81 Date: Sat, 4 Sep 2021 16:38:07 -0500 Subject: [PATCH] feat: adde blend as a GUI highlight arguments --- lua/catppuccino/utils/util.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/catppuccino/utils/util.lua b/lua/catppuccino/utils/util.lua index e6d1746..ab69997 100644 --- a/lua/catppuccino/utils/util.lua +++ b/lua/catppuccino/utils/util.lua @@ -90,11 +90,13 @@ function util.string_to_color(colors, value, default) end function util.highlight(group, color) + -- Doc: :h highlight-gui local style = color.style and "gui=" .. color.style or "gui=NONE" local fg = color.fg and "guifg=" .. color.fg or "guifg=NONE" local bg = color.bg and "guibg=" .. color.bg or "guibg=NONE" local sp = color.sp and "guisp=" .. color.sp or "" - local hl = "highlight " .. group .. " " .. style .. " " .. fg .. " " .. bg .. " " .. sp + local blend = color.blend and "blend=" .. color.blend or "" + local hl = "highlight " .. group .. " " .. style .. " " .. fg .. " " .. bg .. " " .. sp .. " " .. blend vim.cmd(hl) if color.link then