snowflake/home/yazi/default.nix
notohh a63e99c84e
All checks were successful
flake check / check (push) Successful in 5m28s
fmt check / check (push) Successful in 55s
yazi: more lua config
2024-01-17 15:13:25 -05:00

32 lines
637 B
Nix

{
config,
pkgs,
...
}: {
xdg.configFile."yazi/init.lua".source = ./init.lua;
imports = [./keymap.nix ./openers.nix];
programs.yazi = {
enable = true;
package = pkgs.yazi;
enableNushellIntegration = true;
settings = {
manager = {
ratio = [1 3 3];
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;
};
};
}