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

18
lua/core/init.lua Normal file
View File

@@ -0,0 +1,18 @@
vim.cmd "silent! command! NvChadUpdate lua require('nvchad').update_nvchad()"
local autocmd = vim.api.nvim_create_autocmd
-- Disable statusline in dashboard
autocmd("FileType", {
pattern = "alpha",
callback = function()
vim.opt.laststatus = 0
end,
})
autocmd("BufUnload", {
buffer = 0,
callback = function()
vim.opt.laststatus = 3
end,
})