old
 1{pkgs, ...}: {
 2  programs.yazi = {
 3    enable = true;
 4    enableBashIntegration = true;
 5    enableFishIntegration = true;
 6    enableNushellIntegration = true;
 7    plugins = {
 8      git = pkgs.yaziPlugins.git;
 9      # starship = pkgs.yaziPlugins.starship;
10      auto-layout = ./plugins/auto-layout.yazi;
11    };
12    initLua = ''
13      require("git"):setup()
14      -- require("starship"):setup()
15      require("auto-layout").setup()
16    '';
17    settings = {
18      mgr = {
19        show_hidden = true;
20        sort_dir_first = true;
21      };
22      plugin.prepend_fetchers = [
23        {
24          id = "git";
25          name = "*";
26          run = "git";
27        }
28        {
29          id = "git";
30          name = "*/";
31          run = "git";
32        }
33      ];
34    };
35  };
36}