mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-23 00:34:24 +01:00
23049a3e99
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
30 lines
467 B
Nix
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" ];
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|