How to run nvim (without user interaction) and export a realistic stats().startuptime? #1870
Unanswered
NonlinearFruit
asked this question in
Q&A
Replies: 1 comment
-
SolutionHere is what I've found:
Explanation
OutputThen you can cat the output like so:
ResultsHere is a nushell script that uses this solution to analyze startup time (script). Script output
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Background
I frequently have a slow neovim startup time and I would love to test the startup time via a script. The goal would be to script:
The part I am stuck on is programmatically getting an accurate nvim startup time.
Question
Is it possible to run neovim (without user interaction) and get lazy.nvim to export a realistic startup time?
Attempts
This is what I've iterated to so far, but startuptime is always
0
and I think I'm missing significant parts of the startup process since there isn't aUIEnter
intimes
.UIEnter
might require removing the--headless
but when--headless
is removed there is no output.Beta Was this translation helpful? Give feedback.
All reactions