feat: adde blend as a GUI highlight arguments

old-catppuccino
Pocco81 3 years ago
parent 28c0b69dd1
commit e92093c557

@ -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

Loading…
Cancel
Save