tune startup time

This commit is contained in:
asep komarudin 2023-03-08 13:52:16 +07:00
parent b7de30e431
commit a745438e75
8 changed files with 126 additions and 95 deletions

View file

@ -13,3 +13,19 @@ if data_exists then
else
require("user.startify")
end
-- Disable statusline in dashboard
vim.api.nvim_create_autocmd("FileType", {
pattern = "alpha",
callback = function()
-- store current statusline value and use that
local old_laststatus = vim.opt.laststatus
vim.api.nvim_create_autocmd("BufUnload", {
buffer = 0,
callback = function()
vim.opt.laststatus = old_laststatus
end,
})
vim.opt.laststatus = 0
end,
})