From 65464f784929837423e59fbc6a992e9f49052189 Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Thu, 5 Aug 2021 21:38:09 +0600 Subject: [PATCH] fix: component highlights fg defaulting to bg --- lua/lualine/highlight.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lualine/highlight.lua b/lua/lualine/highlight.lua index 15a7cdf..7334a67 100644 --- a/lua/lualine/highlight.lua +++ b/lua/lualine/highlight.lua @@ -129,7 +129,7 @@ function M.create_component_highlight_group(color, highlight_tag, options) active_theme.normal[section] local bg = (color.bg or (type(options.color) == 'table' and options.color.bg) or default_color_table.bg) - local fg = (color.fg or (type(options.color) == 'table' and options.color.bg) + local fg = (color.fg or (type(options.color) == 'table' and options.color.fg) or default_color_table.fg) -- Check if it's same as normal mode if it is no need to create aditional highlight if mode ~= 'normal' then