Skip to content

Commit

Permalink
plugins/yazi: add yaziPackage option
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Oct 20, 2024
1 parent c4ad4d0 commit 47b563d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions plugins/by-name/yazi/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
lib,
pkgs,
...
}:
let
Expand All @@ -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";
Expand Down

0 comments on commit 47b563d

Please sign in to comment.