reNixos/hand7s/programs/yazi.nix
s0me1newithhand7s 908b532a12
fmt: hand7sfmt
Signed-off-by: s0me1newithhand7s <117505144+s0me1newithhand7s@users.noreply.github.com>
2025-10-15 12:28:36 +03:00

79 lines
2.1 KiB
Nix

{
pkgs,
lib,
...
}: {
programs = {
yazi = {
enable = true;
enableFishIntegration = true;
shellWrapperName = "yz";
settings = {
mgr = {
sort_by = "natural";
sort_sensitive = true;
sort_reverse = false;
sort_translit = true;
linemode = "size";
show_hidden = true;
show_symlink = true;
};
preview = {
tab_size = 4;
image_filter = "lanczos3";
image_quality = 90;
};
opener = {
play = [
{
run = "${lib.getExe pkgs.mpv} ''$@''";
block = true;
for = "unix";
}
];
edit = [
{
run = "${lib.getExe pkgs.helix} ''$@''";
block = true;
for = "unix";
}
];
open = [
{
run = "${lib.getExe' pkgs.xdg-utils "xdg-open"} ''$@''";
block = true;
for = "unix";
}
];
};
input = {
cursor_blink = true;
};
plugins = {
inherit
(pkgs.yaziPlugins)
starship
rsync
git
chmod
full-border
;
};
initLua = ''
require("full-border"):setup({ type = ui.Border.ROUNDED })
require("starship"):setup()
require("git"):setup()
'';
};
};
};
}