fix: theme not changing at runtime

This commit is contained in:
hoob3rt 2021-02-12 12:53:52 +01:00 committed by Hubert Pelczarski
parent 8a4baa804b
commit 937a56d5ef
1 changed files with 3 additions and 0 deletions

View File

@ -106,6 +106,9 @@ local function set_lualine_theme()
end end
local function statusline(sections, is_focused) local function statusline(sections, is_focused)
if M.theme ~= theme_set then
set_lualine_theme()
end
local status = {} local status = {}
if sections.lualine_a then if sections.lualine_a then
table.insert(status, highlight.format_highlight(is_focused, 'lualine_a')) table.insert(status, highlight.format_highlight(is_focused, 'lualine_a'))