You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the current API, layouts are computed up-front in the setup function, whether or not the user is actually requesting a render. For example, via something like #104, a user would disable autostart until their conditions are met (e.g. "when there is no existing session, or when all windows are closed")
In that case, if the user's alpha setup function is expensive, it will still affect nvim startup time, as the layouts will all be computed up-front. To solve this, layout sections should be allowed to be functions:
most layout types alreadyaccept a function in val which gets resolved on each draw (you can just mutate a variable in your config and check it in the function or something)
Alternative / additional to #34
With the current API, layouts are computed up-front in the setup function, whether or not the user is actually requesting a render. For example, via something like #104, a user would disable autostart until their conditions are met (e.g. "when there is no existing session, or when all windows are closed")
In that case, if the user's alpha setup function is expensive, it will still affect nvim startup time, as the layouts will all be computed up-front. To solve this, layout sections should be allowed to be functions:
The text was updated successfully, but these errors were encountered: