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