fixup: allow refresh option to be set individually

This commit is contained in:
shadmansaleh 2022-07-28 13:14:55 +06:00
parent aeeefcef98
commit c6d7485114
1 changed files with 6 additions and 1 deletions

View File

@ -94,7 +94,12 @@ local function apply_configuration(config_table)
return return
end end
for section_name, section in pairs(config_table[section_group_name]) do 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
end end
if config_table.options and config_table.options.globalstatus and vim.fn.has('nvim-0.7') == 0 then if config_table.options and config_table.options.globalstatus and vim.fn.has('nvim-0.7') == 0 then