avoid un-needed lazy loading of packer | improve packer bootstrapping

This commit is contained in:
siduck
2022-05-23 12:54:03 +05:30
parent bdf45a447a
commit a2ff5c285e
10 changed files with 116 additions and 214 deletions

View File

@@ -1,21 +1,12 @@
local present, packer = pcall(require, "plugins.packerInit")
if not present then
return false
end
local plugins = {
["nvim-lua/plenary.nvim"] = {},
["lewis6991/impatient.nvim"] = {},
["wbthomason/packer.nvim"] = {
event = "VimEnter",
},
["wbthomason/packer.nvim"] = {},
["NvChad/extensions"] = {},
["NvChad/base46"] = {
after = "packer.nvim",
after = "plenary.nvim",
config = function()
local ok, base46 = pcall(require, "base46")
@@ -219,13 +210,4 @@ local plugins = {
},
}
plugins = nvchad.remove_default_plugins(plugins)
-- merge user plugin table & default plugin table
plugins = nvchad.plugin_list(plugins)
return packer.startup(function(use)
for _, v in pairs(plugins) do
use(v)
end
end)
require("core.packer").run(plugins)