diff --git a/colors/highlite.vim b/colors/highlite.vim index a1fe16f..1d5a632 100644 --- a/colors/highlite.vim +++ b/colors/highlite.vim @@ -116,6 +116,7 @@ local purple_light = {'#af60af', 63, 'magenta'} = { bg=, -- The color used for background color, or use 'NONE', 'fg' or 'bg' fg=, -- The color used for foreground color, or use 'NONE', 'fg' or 'bg' + blend= -- The |highlight-blend| value, if one is desired. -- Style can be 'bold', 'italic', and more. See |attr-list| for more information. It can also have a color, and/or multiple s. style=|{ [, ] [color=]}) } diff --git a/lua/highlite.lua b/lua/highlite.lua index cc96c03..7d7432d 100644 --- a/lua/highlite.lua +++ b/lua/highlite.lua @@ -66,9 +66,13 @@ local function highlight(highlight_group, attributes) -- {{{ † highlight_cmd[3] = highlight_cmd[2]..' ' highlight_cmd[2] = 'link ' highlight_cmd[4] = link - else -- the `highlight_group` is uniquely defined. + else -- The `highlight_group` is uniquely defined. colorize(highlight_cmd, attributes) + if attributes.blend then -- There is a value for the `highlight-blend` field. + highlight_cmd[#highlight_cmd + 1] = ' blend='..attributes.blend + end + local style = attributes.style if type(style) == 'table' then -- Concat all of the entries together with a comma between before styling.