Squashed 'users/daniel/configs/system/nvim/nvim/' content from commit f10b473
git-subtree-dir: users/daniel/configs/system/nvim/nvim git-subtree-split: f10b4730176b567e15911b3c1a7c5a31c82c8b8e
This commit is contained in:
17
lua/plugins/configs/alpha.lua
Normal file
17
lua/plugins/configs/alpha.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
return function(_, opts)
|
||||
require("alpha").setup(opts.config)
|
||||
|
||||
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
|
||||
opts.section.footer.val =
|
||||
{ " ", " ", " ", "AstroNvim loaded " .. stats.count .. " plugins in " .. ms .. "ms" }
|
||||
opts.section.footer.opts.hl = "DashboardFooter"
|
||||
pcall(vim.cmd.AlphaRedraw)
|
||||
end,
|
||||
})
|
||||
end
|
||||
Reference in New Issue
Block a user