Files
nixos-config/modules/home/yazi.nix

64 lines
1.2 KiB
Nix
Raw Normal View History

2025-11-09 14:34:17 -05:00
{
pkgs,
2025-11-09 14:34:17 -05:00
...
}:
{
home.packages = with pkgs; [
dragon-drop
];
2025-11-09 14:34:17 -05:00
programs.yazi = {
enable = true;
enableZshIntegration = true;
shellWrapperName = "y";
plugins = with pkgs.yaziPlugins; {
inherit git full-border chmod;
};
initLua = ''
require("git"):setup {
-- Order of status signs showing in the linemode
order = 1500,
}
require("full-border"):setup()
'';
keymap = {
mgr.prepend_keymap = [
{
on = "<C-d>";
run = "shell -- dragon-drop -x -i -T %s1";
desc = "Open a prompt to drag and drop a file";
}
{
on = [
"c"
"m"
];
run = "plugin chmod";
desc = "Chmod on selected files";
}
];
};
settings = {
plugin = {
# Disable all preset previewers, preloaders
# This is recommended by yazi when working with network shares
preloaders = [ ];
previewers = [ ];
prepend_fetchers = [
{
id = "git";
url = "*";
run = "git";
}
{
id = "git";
url = "*/";
run = "git";
}
];
};
};
2025-11-09 14:34:17 -05:00
};
}