[Bufdelete] Replace with bufremove, because bufdelete is deprecated

This commit is contained in:
Janis Hutz 2025-03-31 10:04:07 +02:00
parent df72ebda9e
commit fa358c9843
2 changed files with 6 additions and 9 deletions

View File

@ -1,9 +0,0 @@
return {
-- delete a buffer
'famiu/bufdelete.nvim',
config = function()
local map = vim.api.nvim_set_keymap
map('n', '<C-w>', '<cmd>Bdelete<CR>', { silent = true, desc = "close current buffer" })
end
}

View File

@ -0,0 +1,6 @@
return {
"echasnovski/mini.bufremove",
config = function ()
vim.keymap.set( 'n', '<C-x>', ':bdelete<CR>', { silent = true, noremap = true, desc = 'Remove buffer' } );
end,
}