zdharma-continuum / zinit

🌻 Flexible and fast ZSH plugin manager
MIT License
2.77k stars 123 forks source link

[feat]: lockfile support #503

Open WilliamHsieh opened 1 year ago

WilliamHsieh commented 1 year ago

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

No response

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

Previously I set up a new machine with my dotfiles. However, some plugins are broken after cloning the newest version.

Describe the proposed feature.

Adding lockfile support for this plugin manager, so one can always checkout for a revision ensuring that all the plugins are working as expected.

Describe alternatives you've considered

Specify the working revision manually.

Additional context

A neovim plugin manager with lockfile support: https://github.com/folke/lazy.nvim.

Related Issues

No response

Myzel394 commented 7 months ago

I'm also very confused on how to properly use zinit with multiple machines. I can't find anything about it in the docs and couldn't find a file where there's like a list of plugins or something similar. This is the only thing currently blocking me from using zinit.

pschmitt commented 7 months ago

This will be quite hard to implement, given the fact that zinit supports multiple OSes and architectures but I get why this would be desirable.

Myzel394 commented 7 months ago

@pschmitt how can I sync plugins? I'm used to use dotfiles, should we use a script that inits zinit?

pschmitt commented 7 months ago

@Myzel394 don't hijack random issues, dude.