fix: defer loading lualine updates for inactive statusline. Fixes #78

This commit is contained in:
Folke Lemaitre
2021-08-05 13:51:06 +02:00
parent 1ea69504b6
commit a5b3cbe750
2 changed files with 13 additions and 3 deletions

View File

@@ -405,6 +405,8 @@ function M.setup(config)
LightspeedGreyWash = { fg = c.dark3 },
}
theme.defer = {}
if config.hideInactiveStatusline then
local inactive = { style = "underline", bg = c.bg, fg = c.bg, sp = c.border }
@@ -413,7 +415,7 @@ function M.setup(config)
-- LuaLine
for _, section in ipairs({ "a", "b", "c" }) do
theme.plugins["lualine_" .. section .. "_inactive"] = inactive
theme.defer["lualine_" .. section .. "_inactive"] = inactive
end
end