25 lines
573 B
Lua
25 lines
573 B
Lua
-- bbye
|
|
--
|
|
-- Bbye allows you to do delete buffers (close files) without closing your windows or messing up your layout.
|
|
--
|
|
-- https://github.com/moll/vim-bbye
|
|
--
|
|
|
|
local opts = { silent = true, noremap = true }
|
|
|
|
return {
|
|
{
|
|
'moll/vim-bbye',
|
|
keys = {
|
|
{ '<leader>bc', '<CMD>Bdelete<CR>', desc = '[c]lose current buffer', opts },
|
|
{
|
|
'<leader>bC',
|
|
'<CMD>bufdo :Bdelete<CR>',
|
|
desc = '[C]lose all buffers',
|
|
opts,
|
|
},
|
|
{ '<C-c>', '<CMD>Bdelete<CR>', desc = 'Close current buffer', opts, hidden = true },
|
|
},
|
|
},
|
|
}
|