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)