feat: replace buffer plugin with leader maps

This commit is contained in:
♥ Minnie ♥ 2025-05-13 23:45:00 +08:00
parent 34ad6cf479
commit 82dd9c85d5
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
4 changed files with 36 additions and 30 deletions

View file

@ -10,5 +10,41 @@
silent = true;
};
}
{ # buffer prefix
mode = "n";
key = "<leader>b";
action = "<Nop>";
options = {
desc = "+buffer";
};
}
{ # goto next buffer
mode = ["n"];
key = "<leader>bn";
action = ":bnext<cr>";
options = {
silent = true;
};
}
{ # goto previous buffer
mode = ["n"];
key = "<leader>bp";
action = ":bprevious<cr>";
options = {
silent = true;
};
}
{ # delete buffer
mode = ["n"];
key = "<leader>bd";
action = ":bdelete<cr>";
options = {
silent = true;
};
}
];
}