yazi: Ensure plugin suffix .yazi

- Append suffix `.yazi` to symlink targets of yazi plugins, if needed
- Improve some docs, especially links to upstream docs.
- Update tests to make use of this feature.
This commit is contained in:
lordkekz 2024-06-03 19:39:00 +02:00 committed by Robert Helgesson
parent 8be82697f7
commit 5ccc3d6739
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED
2 changed files with 27 additions and 9 deletions

View file

@ -70,7 +70,10 @@
};
};
initLua = ./init.lua;
plugins = { "test.yazi" = ./plugin; };
plugins = {
"test.yazi" = ./plugin;
"anotherTest" = ./plugin;
};
flavors = { "test.yazi" = ./flavor; };
};
@ -87,6 +90,8 @@
${./init.lua}
assertFileContent home-files/.config/yazi/plugins/test.yazi/init.lua \
${./plugin/init.lua}
assertFileContent home-files/.config/yazi/plugins/anotherTest.yazi/init.lua \
${./plugin/init.lua}
assertFileContent home-files/.config/yazi/flavors/test.yazi/init.lua \
${./flavor/init.lua}
'';