install initial nixvim
This commit is contained in:
2026-04-08 10:13:11 +02:00
parent 6f64253c4b
commit d7b58e2216
64 changed files with 592 additions and 286 deletions

View File

@@ -0,0 +1,40 @@
{ ... }:
{
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";
}
];
};
}