feat: replace buffer plugin with leader maps
This commit is contained in:
parent
34ad6cf479
commit
82dd9c85d5
|
@ -11,7 +11,6 @@
|
||||||
./plugins/cmp/cmp.nix
|
./plugins/cmp/cmp.nix
|
||||||
|
|
||||||
# Editor plugins and configurations
|
# Editor plugins and configurations
|
||||||
./plugins/editor/bufdelete.nix
|
|
||||||
./plugins/editor/comment.nix
|
./plugins/editor/comment.nix
|
||||||
./plugins/editor/treesitter.nix
|
./plugins/editor/treesitter.nix
|
||||||
|
|
||||||
|
|
|
@ -10,5 +10,41 @@
|
||||||
silent = true;
|
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;
|
||||||
|
};
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
{...}: {
|
|
||||||
plugins.bufdelete = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
keymaps = [
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>bd";
|
|
||||||
action = "<cmd>Bdelete<cr>";
|
|
||||||
options.desc = "Buffer Delete";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>bw";
|
|
||||||
action = "<cmd>Bwipeout<cr>";
|
|
||||||
options.desc = "Buffer Wipeout";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -14,15 +14,6 @@
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>b";
|
|
||||||
action = "<Nop>";
|
|
||||||
options = {
|
|
||||||
desc = "+buffer";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
{
|
||||||
mode = ["n" "v"];
|
mode = ["n" "v"];
|
||||||
key = "<leader>c";
|
key = "<leader>c";
|
||||||
|
|
Loading…
Reference in a new issue