diff --git a/lua/plugins/configs/others.lua b/lua/plugins/configs/others.lua index 360d8bf..de9ac85 100644 --- a/lua/plugins/configs/others.lua +++ b/lua/plugins/configs/others.lua @@ -38,7 +38,7 @@ M.blankline = function(override_flag) "TelescopePrompt", "TelescopeResults", "nvchad_cheatsheet", - 'lsp-installer', + "lsp-installer", "", }, buftype_exclude = { "terminal" }, diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 371abd9..e5d4f19 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -229,6 +229,12 @@ local plugins = { -- append user plugins to default plugins local user_Plugins = plugin_settings.install -plugins[#plugins + 1] = user_Plugins +if type(user_Plugins) == "table" then + if table.maxn(user_Plugins) == 1 then + plugins[#plugins + 1] = user_Plugins[1] + else + plugins[#plugins + 1] = user_Plugins + end +end return packer.startup { plugins }