zap-zsh / zap

:zap: Zap is a minimal zsh plugin manager
https://www.zapzsh.com/
GNU General Public License v3.0
942 stars 33 forks source link

Enable lazy loading optional parameter #175

Open trekie86 opened 8 months ago

trekie86 commented 8 months ago

If the feature request is for a plugin or theme, specify it here.

plugins in general

If the feature solves a problem you have, specify it here.

When I open my terminal, I want zsh ready to go when I start it. At times, startup was very slow...I'm looking at you NVM, and so I spent some time profiling to figure out the source. There are some of my plugins which I need right away (e.g. ones that set the style), but there are others that can be delayed a bit. It would be nice for zap to support lazy loading out of the box and not rely upon each individual plugin to support it.

Describe the proposed feature.

Describe alternatives you've considered

Moving one by one through plugins that are slower to start but not necessary for startup and finding lazy-loading alternatives.

Additional context

No response

Related Issues

Could help address: https://github.com/zap-zsh/zap/issues/174