From c6d7485114edd18910b6a3b11023e84643f70cf7 Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Thu, 28 Jul 2022 13:14:55 +0600 Subject: [PATCH] fixup: allow refresh option to be set individually --- lua/lualine/config.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lua/lualine/config.lua b/lua/lualine/config.lua index 57351d1..dce1070 100644 --- a/lua/lualine/config.lua +++ b/lua/lualine/config.lua @@ -94,7 +94,12 @@ local function apply_configuration(config_table) return end for section_name, section in pairs(config_table[section_group_name]) do - config[section_group_name][section_name] = utils.deepcopy(section) + if section_name == 'refresh' then + config[section_group_name][section_name] = + vim.tbl_deep_extend('force', config[section_group_name][section_name], utils.deepcopy(section)) + else + config[section_group_name][section_name] = utils.deepcopy(section) + end end end if config_table.options and config_table.options.globalstatus and vim.fn.has('nvim-0.7') == 0 then