nix-config/home/yazi.nix
Donovan Glover 23049a3e99
meta: Switch from joshuto to yazi
After almost a year of using joshuto, I have decided to switch to yazi.

The latest joshuto update broke my image preview configuration, and it
didn't make sense trying to figure out the issue with yazi already
having built-in image support and more.

Other notable improvements from this change include:

- Simplified configuration since defaults no longer have to be
  re-declared
- Faster directory loading, especially for /nix/store/ and symlinks to
  /nix/store/
- Text files are more likely to show previews without manual
  configuration
- Videos now have working previews again, similar to ranger
2024-03-30 18:20:01 -04:00

30 lines
467 B
Nix

{
programs.yazi = {
enable = true;
settings = {
manager = {
ratio = [ 1 2 4 ];
sort_dir_first = true;
};
preview = {
tab_size = 4;
image_filter = "lanczos3";
max_width = 1920;
max_height = 1080;
image_quality = 90;
};
};
keymap = {
manager.prepend_keymap = [
{
run = "remove --force";
on = [ "d" ];
}
];
};
};
}