This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
AsaJS/modules/programs/nixvim/keymaps/barbar.nix
2026-04-09 10:36:32 +07:00

39 lines
713 B
Nix

[
{
mode = "n";
key = "<A-,>";
action = "<cmd>BufferPrevious<CR>";
options.silent = true;
}
{
mode = "n";
key = "<A-.>";
action = "<cmd>BufferNext<CR>";
options.silent = true;
}
{
mode = "n";
key = "<A-<>";
action = "<cmd>BufferMovePrevious<CR>";
options.silent = true;
}
{
mode = "n";
key = "<A->>";
action = "<cmd>BufferMoveNext<CR>";
options.silent = true;
}
{
mode = "n";
key = "<A-c>";
action = "<Cmd>BufferClose<CR>";
options.silent = true;
}
]
++ (builtins.genList (i: {
mode = "n";
key = "<A-${toString (i + 1)}>";
action = "<cmd>BufferGoto ${toString (i + 1)}<CR>";
options.silent = true;
}) 9)