mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-27 11:19:02 +02:00
feat(dashboard): show loaded/count plugins on dashboard instead of just count
This commit is contained in:
parent
2abb5907ef
commit
9670c8a400
2 changed files with 8 additions and 2 deletions
|
@ -38,7 +38,7 @@ return {
|
||||||
footer = function()
|
footer = function()
|
||||||
local stats = require("lazy").stats()
|
local stats = require("lazy").stats()
|
||||||
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
|
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
|
||||||
return { "⚡ Neovim loaded " .. stats.count .. " plugins in " .. ms .. "ms" }
|
return { "⚡ Neovim loaded " .. stats.loaded .. "/" .. stats.count .. " plugins in " .. ms .. "ms" }
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -353,7 +353,13 @@ return {
|
||||||
callback = function()
|
callback = function()
|
||||||
local stats = require("lazy").stats()
|
local stats = require("lazy").stats()
|
||||||
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
|
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)
|
pcall(vim.cmd.AlphaRedraw)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue