Files
nixos-config/home/programs/nixvim/plugins/yazi.nix
Elias Schröter d7b58e2216 nixvim
install initial nixvim
2026-04-08 10:13:11 +02:00

41 lines
800 B
Nix

{ ... }:
{
programs.nixvim = {
plugins = {
yazi = {
enable = true;
lazyLoad.settings.event = [
"BufReadPost"
"BufNewFile"
];
};
which-key.settings.spec = [
{
__unkeyed-1 = "<leader>y";
group = "Yazi";
icon = " ";
}
];
};
keymaps = [
{
key = "<leader>yf";
action = "<cmd>Yazi<cr>";
options.desc = "Open yazi at the current file";
}
{
key = "<leader>yw";
action = "<cmd>Yazi cwd<cr>";
options.desc = "Open yazi at the current working directory";
}
{
key = "<leader>yl";
action = "<cmd>Yazi toggle<cr>";
options.desc = "Resume the last session";
}
];
};
}