feat(dashboard): show loaded/count plugins on dashboard instead of just count

This commit is contained in:
Folke Lemaitre 2023-10-09 12:49:33 +02:00
parent 2abb5907ef
commit 9670c8a400
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 8 additions and 2 deletions

View file

@ -353,7 +353,13 @@ return {
callback = function()
local stats = require("lazy").stats()
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
dashboard.section.footer.val = "⚡ Neovim loaded " .. stats.count .. " plugins in " .. ms .. "ms"
dashboard.section.footer.val = "⚡ Neovim loaded "
.. stats.loaded
.. "/"
.. stats.count
.. " plugins in "
.. ms
.. "ms"
pcall(vim.cmd.AlphaRedraw)
end,
})