From 47b563d4e1410bff6a9481b3dd8b01b1e5ed70d2 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 20 Oct 2024 17:41:22 +0200 Subject: [PATCH] plugins/yazi: add yaziPackage option --- plugins/by-name/yazi/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plugins/by-name/yazi/default.nix b/plugins/by-name/yazi/default.nix index f36594ea9..f16b68a47 100644 --- a/plugins/by-name/yazi/default.nix +++ b/plugins/by-name/yazi/default.nix @@ -1,5 +1,6 @@ { lib, + pkgs, ... }: let @@ -21,6 +22,16 @@ lib.nixvim.neovim-plugin.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; + }; + }; + + extraConfig = cfg: { + extraPackages = [ cfg.yaziPackage ]; + }; + settingsOptions = { log_level = defaultNullOpts.mkLogLevel' { pluginDefault = "off";