snowflake/home/yazi/default.nix
notohh 9018565460
Some checks failed
fmt check / check (push) Waiting to run
flake check / check (push) Has been cancelled
yazi: init keymap and openers
2024-01-17 14:40:02 -05:00

31 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 2];
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;
};
};
}