fix for getting config settings from plugin table

This commit is contained in:
zbirenbaum 2022-02-19 22:53:34 -05:00 committed by siduck
parent ceaf02e0bf
commit 76d194b141

View File

@ -303,6 +303,9 @@ end
-- append user plugins to default plugins
M.add_user_plugins = function(plugins)
local user_Plugins = require("core.utils").load_config().plugins.install or {}
if type(user_Plugins) == "string"
then user_Plugins=require(user_Plugins)
end
if not vim.tbl_isempty(user_Plugins) then
for _, v in pairs(user_Plugins) do
plugins[v[1]] = v