From c74b049408f1ca2222c09084bfee14e449d8423a Mon Sep 17 00:00:00 2001 From: siduck Date: Thu, 5 May 2022 15:02:38 +0530 Subject: [PATCH] Update utils.lua --- lua/core/utils.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lua/core/utils.lua b/lua/core/utils.lua index 311305d..d978a90 100644 --- a/lua/core/utils.lua +++ b/lua/core/utils.lua @@ -84,18 +84,13 @@ M.plugin_list = function(default_plugins) -- require if string is present local ok + if type(user_plugins) == "string" then ok, user_plugins = pcall(require, user_plugins) if ok and not type(user_plugins) == "table" then user_plugins = {} end end - if type(plug_override) == "string" then - ok, plug_override = pcall(require, plug_override) - if ok and not type(plug_override) == "table" then - plug_override = {} - end - end -- merge default + user plugin table default_plugins = vim.tbl_deep_extend("force", default_plugins, user_plugins)