use alt-file when deleting current buffer

This commit is contained in:
Baipyrus 2024-10-17 10:54:10 +02:00
parent 444b87fd8b
commit 5795aa73ef

View File

@ -47,7 +47,7 @@ vim.keymap.set('n', '<leader>bd', function()
-- Get current buffer
local buf = vim.api.nvim_get_current_buf()
-- Switch to different buffer
vim.cmd 'bp'
vim.cmd 'exe "norm \\<C-6>"'
-- Delete saved buffer
vim.api.nvim_buf_delete(buf, {})
end, { desc = '[B]uffer [D]elete' })