From 605a30f2fe7c0922c0ebc890dec546134983b7f6 Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Sun, 20 Feb 2022 14:55:03 +0600 Subject: [PATCH] feat: support transitional seperators with transparent background --- lua/lualine/highlight.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/lualine/highlight.lua b/lua/lualine/highlight.lua index 008d737..350fa80 100644 --- a/lua/lualine/highlight.lua +++ b/lua/lualine/highlight.lua @@ -279,12 +279,12 @@ function M.get_transitional_highlights(left_hl, right_hl) -- Get colors from highlights local fg = modules.utils.extract_highlight_colors(left_hl, 'bg') local bg = modules.utils.extract_highlight_colors(right_hl, 'bg') - if not fg or not bg then - return nil - end -- Color retrieval failed + if not fg and not bg then + return nil -- Color retrieval failed + end if bg == fg then - return nil - end -- Separator won't be visible anyway + return nil -- Separator won't be visible anyway + end M.highlight(highlight_name, fg, bg, nil) end return '%#' .. highlight_name .. '#'