From cb3c5682a8a71571fd016daaa59e31105ce084f2 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Sun, 26 Sep 2021 23:48:25 +0530 Subject: [PATCH] fix : make inactive statuslines as thin lines --- lua/colors/highlights.lua | 5 ----- lua/plugins/configs/statusline.lua | 18 +++++++++++++++--- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/lua/colors/highlights.lua b/lua/colors/highlights.lua index d09881b..0141415 100644 --- a/lua/colors/highlights.lua +++ b/lua/colors/highlights.lua @@ -71,13 +71,8 @@ bg("PmenuThumb", nord_blue) -- misc fg("LineNr", grey) - fg("NvimInternalError", red) - --- inactive statuslines as thin splitlines -fg("StatusLineNC", one_bg2 .. " gui=underline") fg("VertSplit", one_bg2) --- fg_bg("Visual",light_grey, colors.lightbg) if ui.transparency then bg("Normal", "NONE") diff --git a/lua/plugins/configs/statusline.lua b/lua/plugins/configs/statusline.lua index 1b45878..04fa185 100644 --- a/lua/plugins/configs/statusline.lua +++ b/lua/plugins/configs/statusline.lua @@ -55,9 +55,6 @@ local components = { table.insert(components.active, {}) table.insert(components.active, {}) table.insert(components.active, {}) -table.insert(components.inactive, {}) -table.insert(components.inactive, {}) -table.insert(components.inactive, {}) components.active[1][1] = { provider = statusline_style.main_icon, @@ -366,6 +363,21 @@ components.active[3][10] = { }, } +local InactiveStatusHL = { + fg = colors.one_bg2, + bg = "NONE", + style = "underline", +} + +components.inactive = { + { + { + provider = " ", + hl = InactiveStatusHL, + }, + }, +} + require("feline").setup { colors = { bg = colors.statusline_bg,