snowflake/home/yazi/default.nix

36 lines
683 B
Nix
Raw Normal View History

2024-02-08 12:04:15 -05:00
{ config, pkgs, ... }:
2024-01-17 13:34:08 -05:00
{
xdg.configFile."yazi/init.lua".source = ./init.lua;
2024-02-08 12:04:15 -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-02-08 12:04:15 -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;
};
};
}