mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-22 10:41:35 +02:00
meta: Migrate yazi from home-manager to shell module
This is a part of making it easier to instantly have access to yazi without having to worry about using home-manager. Note that this works for my use case since I don't use Nix on non-NixOS devices and don't intend to do so anytime soon.
This commit is contained in:
parent
cd5f0793d7
commit
e64cc2697f
@ -1,29 +0,0 @@
|
|||||||
{
|
|
||||||
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" ];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -274,5 +274,35 @@ in
|
|||||||
show_program_path = false;
|
show_program_path = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
yazi = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
yazi = {
|
||||||
|
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" ];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user