modules/dependencies: add yazi

This commit is contained in:
Gaetan Lepage 2025-04-07 18:18:23 +02:00 committed by nix-infra-bot
parent 961a96b537
commit 480bb9b311
2 changed files with 10 additions and 8 deletions

View file

@ -31,6 +31,7 @@ let
typst.default = "typst";
ueberzug.default = "ueberzugpp";
which.default = "which";
yazi.default = "yazi";
};
mkDependencyOption = name: properties: {

View file

@ -1,6 +1,5 @@
{
lib,
pkgs,
...
}:
let
@ -22,14 +21,16 @@ lib.nixvim.plugins.mkNeovimPlugin {
See the [upstream docs](https://github.com/mikavilpas/yazi.nvim?tab=readme-ov-file#%EF%B8%8F-keybindings) for details.
'';
extraOptions = {
yaziPackage = lib.mkPackageOption pkgs "yazi" {
nullable = true;
};
};
imports = [
# TODO: added 2025-04-07, remove after 25.05
(lib.nixvim.mkRemovedPackageOptionModule {
plugin = "yazi";
packageName = "yazi";
})
];
extraConfig = cfg: {
extraPackages = [ cfg.yaziPackage ];
extraConfig = {
dependencies.yazi.enable = lib.mkDefault true;
};
settingsOptions = {