add: update config

This commit is contained in:
asep.komarudin 2024-03-31 16:35:21 +07:00
parent 3100854e08
commit 76117ededa
20 changed files with 245 additions and 176 deletions

View file

@ -47,9 +47,23 @@ if data_exists then
footer_text = data_txt
end
end
startify.section.footer.val = {
{ type = "text", val = footer_text },
}
vim.api.nvim_create_autocmd("User", {
pattern = "LazyVimStarted",
desc = "Add Alpha dashboard footer",
once = true,
callback = function()
local stats = require("lazy").stats()
local ms = math.floor(stats.startuptime * 100 + 0.5) / 100
startify.section.footer.val = {
{
type = "text",
val = { footer_text .. " " .. stats.loaded .. "/" .. stats.count .. " plugins  in " .. ms .. "ms" },
},
}
pcall(vim.cmd.AlphaRedraw)
end,
})
-- ignore filetypes in MRU
startify.mru_opts.ignore = function(path, ext)
return (string.find(path, "COMMIT_EDITMSG")) or (vim.tbl_contains(default_mru_ignore, ext))