Reload theme when setting it up so auto can pick up changes in coloracheme

This commit is contained in:
shadmansaleh 2021-08-02 12:48:23 +06:00
parent 6d153dac1f
commit 74d23fbd0c
1 changed files with 1 additions and 0 deletions

View File

@ -173,6 +173,7 @@ local function setup_theme()
local function get_theme_from_config()
local theme_name = config.options.theme
if type(theme_name) == 'string' then
package.loaded['lualine.themes.'..theme_name] = nil
local ok, theme = pcall(require, 'lualine.themes.' .. theme_name)
if ok then return theme end
elseif type(theme_name) == 'table' then