{
  pkgs,
  lib,
  config,
  ...
}: {
  config = lib.mkIf config.setup.pluginGroups.niceToHave {
    plugins.yazi = {
      enable = true;
      settings.open_for_directories = true;
    };

    extraPackages = [pkgs.yazi];

    keymaps = [
      {
        key = "<leader>y";
        action.__raw = "require('yazi').yazi";
        mode = "n";
        options.desc = "Open yazi";
      }
    ];
  };
}
