From de246fa0f5aff645b5622968c8b200103ed54464 Mon Sep 17 00:00:00 2001 From: Akianonymus Date: Sun, 30 Jan 2022 22:34:39 +0530 Subject: [PATCH] Resolve https://github.com/NvChad/NvChad/issues/774 | Format --- lua/plugins/configs/others.lua | 2 +- lua/plugins/init.lua | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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 }