Is it possible to manage yazi plugins using lazy.nvim? #84
Replies: 5 comments
-
I actually built a working proof of concept for this today. It's able to yazi-plugin-manager-poc.movNeovim does not load the plugin - it only allows managing its version using the lazy.nvim ui. @sxyazi I was wondering if you have some upcoming plans for the plugin system that might conflict with this idea. I think this would require some kind of tinkering, so it would only be for "advanced users". Not really sure where I want to go with this idea yet. |
Beta Was this translation helpful? Give feedback.
-
Wow that's really cool!
Yeah, I have plans to improve the package manager in the future, right now it’s just an MVP. It’s not a priority, this means I won’t be spending time on it right away unless it runs into bugs and doesn’t have a simple workaround. |
Beta Was this translation helpful? Give feedback.
-
The plugin manager integration feature with lazy.nvim has now been released. I think I managed to strike a reasonable balance between the spirit of lazy.nvim (the user is in control) and helping the user set the plugins up. In this approach, lazy.nvim handles the plugin installation and updating, and yazi.nvim only helps with linking (symlinking) the plugin. I'm hoping this "helping step" is flexible enough that any future yazi plugin manager features could be supported there. |
Beta Was this translation helpful? Give feedback.
-
I noticed there are plans in neovim and lazy.nvim to move to a new, ecosystem agnostic package specification:
I will be following the progress on this initiative. But for now it seems that there is no implementation to try out. |
Beta Was this translation helpful? Give feedback.
-
I started a discussion demonstrating the general idea here, asking for feedback |
Beta Was this translation helpful? Give feedback.
-
As a neovim and lazy.nvim user, I update my lazy.nvim plugins almost daily. The experience is using it is very good. I get access to features such as:
<leader>l
(lowercase L) opens lazygit in the same ui seamlessly for browsing commit diffs<leader>t
opens a floating terminal in the repository of the package in a similar manner~/git/
repository directory. useful when developing!lazy-lock.json
), and can be committed to my dotfiles repo, and optionally reverted back to (in case there are issues, just roll back. easy.)...there's probably tons more. Basically the feature set is insanely good.
My motivation: I like using this so much that I don't necessarily want to learn another system to manage yazi plugins. I want to use this system.
Beta Was this translation helpful? Give feedback.
All reactions