From b7cf5067856cd85a3287c86d92610288535c0e93 Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Thu, 25 Nov 2021 13:44:15 +0600 Subject: [PATCH] enhache: support inlined custom component in extensions too --- lua/lualine/utils/loader.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lualine/utils/loader.lua b/lua/lualine/utils/loader.lua index 258982a..9411faa 100644 --- a/lua/lualine/utils/loader.lua +++ b/lua/lualine/utils/loader.lua @@ -205,7 +205,7 @@ local function load_extensions(config) if type(extension) == 'string' then local ok, local_extension = pcall(require, 'lualine.extensions.' .. extension) if ok then - local_extension = vim.deepcopy(local_extension) + local_extension = modules.utils.deepcopy(local_extension) load_sections(local_extension.sections, config.options) if local_extension.inactive_sections then load_sections(local_extension.inactive_sections, config.options) @@ -224,7 +224,7 @@ Extension named `%s` was not found . Check if spelling is correct. )) end elseif type(extension) == 'table' then - local local_extension = vim.deepcopy(extension) + local local_extension = modules.utils.deepcopy(extension) load_sections(local_extension.sections, config.options) if local_extension.inactive_sections then load_sections(local_extension.inactive_sections, config.options)