actually i kinda liked this
This commit is contained in:
parent
8a8991263b
commit
b5b7fdebc6
3 changed files with 60 additions and 37 deletions
59
config/plugins/editor/buffers.nix
Normal file
59
config/plugins/editor/buffers.nix
Normal file
|
@ -0,0 +1,59 @@
|
|||
{...}: {
|
||||
plugins.bufdelete = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
# 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 = {
|
||||
desc = "bdelete";
|
||||
silent = true;
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
# wipeout buffer
|
||||
mode = ["n"];
|
||||
key = "<leader>bw";
|
||||
action = ":Bwipeout<cr>";
|
||||
options = {
|
||||
desc = "bwipeout";
|
||||
silent = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue