snowflake/home/programs/yazi/default.nix

32 lines
637 B
Nix
Raw Normal View History

2024-01-17 13:34:08 -05:00
{
config,
pkgs,
...
}: {
xdg.configFile."yazi/init.lua".source = ./init.lua;
2024-01-17 14:40:02 -05:00
imports = [./keymap.nix ./openers.nix];
2024-01-17 13:34:08 -05:00
programs.yazi = {
enable = true;
package = pkgs.yazi;
enableNushellIntegration = true;
settings = {
manager = {
2024-01-17 15:13:25 -05:00
ratio = [1 3 3];
2024-01-17 13:34:08 -05:00
sort_by = "natural";
sort_reverse = false;
sort_dir_first = true;
show_hidden = true;
show_symlink = true;
linemode = "size";
};
preview = {
cache_dir = "${config.xdg.cacheHome}";
max_height = 900;
max_width = 600;
};
log.enable = false;
};
};
}