From 937a56d5ef4ef170f1f98bb5b44b81e5c8798575 Mon Sep 17 00:00:00 2001 From: hoob3rt Date: Fri, 12 Feb 2021 12:53:52 +0100 Subject: [PATCH] fix: theme not changing at runtime --- lua/lualine.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/lualine.lua b/lua/lualine.lua index 1fd77f6..f61d4ba 100644 --- a/lua/lualine.lua +++ b/lua/lualine.lua @@ -106,6 +106,9 @@ local function set_lualine_theme() end local function statusline(sections, is_focused) + if M.theme ~= theme_set then + set_lualine_theme() + end local status = {} if sections.lualine_a then table.insert(status, highlight.format_highlight(is_focused, 'lualine_a'))