fix for getting config settings from plugin table
This commit is contained in:
parent
ceaf02e0bf
commit
76d194b141
@ -303,6 +303,9 @@ end
|
|||||||
-- append user plugins to default plugins
|
-- append user plugins to default plugins
|
||||||
M.add_user_plugins = function(plugins)
|
M.add_user_plugins = function(plugins)
|
||||||
local user_Plugins = require("core.utils").load_config().plugins.install or {}
|
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
|
if not vim.tbl_isempty(user_Plugins) then
|
||||||
for _, v in pairs(user_Plugins) do
|
for _, v in pairs(user_Plugins) do
|
||||||
plugins[v[1]] = v
|
plugins[v[1]] = v
|
||||||
|
Loading…
Reference in New Issue
Block a user