nvimdev / dashboard-nvim

vim dashboard
MIT License
2.3k stars 187 forks source link

Startup time at dashboard. #366

Closed anjos closed 1 year ago

anjos commented 1 year ago

Is your feature request related to a problem? Please describe. I'd like to display the total start-up time on my dashboard (at the footer, in particular).

Describe the solution you'd like This plugin allows me to defer the rendering of some parts of the dashboard depending on events. In particular on UIEnter, where stats for the plugin manager are already calculated (Lazy, at least, works like this), that occur before the actual dashboard is displayed.

Describe alternatives you've considered That dashboard itself would do that on the line it prints about the number of packages loaded, but found no option regarding this (only a very old issue pre-lua implementation - see #74).

I also considered switching the dashboard plugin, but this one is cooler :-)

Additional context None.

anjos commented 1 year ago

After looking at the package code, footer can be a function, and that works beautifully. I'm closing this.