From 82b0fd14bbe1ccbbfd48c3e1e4c4ab02b2952661 Mon Sep 17 00:00:00 2001 From: Iron_E Date: Fri, 28 Aug 2020 13:26:37 -0400 Subject: [PATCH] Initial implementation --- colors/highlite.vim | 1 + lua/highlite.lua | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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.