Files
nvim-modular/lua/kickstart/plugins/bbye.lua
2025-09-11 10:05:38 +02:00

26 lines
601 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',
lazy = false,
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', silent = true, noremap = true },
},
},
}