How should I add plugins to yazi using the wrapper? #392
-
|
I read the docs but didn't understand what I should do to add plugins for yazi from nixpkgs our the yazi.lua file like I do in home-manager. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
|
Excellent question I don't use yazi, and looking at this wrapper side by side with the home manager module, I'll be honest, I have no idea. It looked like package.plugins was it when I first reviewed, but I apparently did not review closely enough? I didn't try to install any yazi plugins when I reviewed this wrapper. It also literally does not handle the yazi/init.lua whatsoever config.constructFiles.init = {
relPath = "${config.binName}-config/init.lua";
content = ''
'';
};or flavors I usually catch this sort of stuff on review, but I think because it mentions plugins twice I thought it was handled? I have opened an issue about it #395, hopefully the maintainer @apetrovic6 is able to help us out with adding it? Or if it is already possible clearing up how to do so and putting it in the docs? But on first glance, it looks like we are just not provisioning those files at all For now you would have to add it yourself with constructFiles for the init.lua and then probably link the plugins with config.buildCommmand to |
Beta Was this translation helpful? Give feedback.
-
|
I should also mention that the same apply to yazi flavors that are put in the flavors directory rather than the plugins directory. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, sorry for being MIA. I can take a look at how all of that works when I'm back home from a trip, and figure out how to implement it in the wrapper module. |
Beta Was this translation helpful? Give feedback.
I did it.
dont know if is the best way to use it but here it is
ps: I am using flake-parts with import-tree