bufdelete: delete buffer without messing up windows
This commit is contained in:
parent
493148c3b8
commit
aea55dcd6c
6 changed files with 37 additions and 19 deletions
23
config/buffer/bufdelete.nix
Normal file
23
config/buffer/bufdelete.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ helpers, ... }:
|
||||
{
|
||||
plugins = {
|
||||
bufdelete = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
mode = [ "n" ];
|
||||
key = "<C-x>";
|
||||
action = helpers.mkRaw ''
|
||||
function()
|
||||
require("bufdelete").bufdelete(0, false)
|
||||
end
|
||||
'';
|
||||
options = {
|
||||
desc = "Toggle terminal";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue