mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-11-14 21:13:49 +00:00
use alt-file when deleting current buffer
This commit is contained in:
parent
444b87fd8b
commit
5795aa73ef
@ -47,7 +47,7 @@ vim.keymap.set('n', '<leader>bd', function()
|
|||||||
-- Get current buffer
|
-- Get current buffer
|
||||||
local buf = vim.api.nvim_get_current_buf()
|
local buf = vim.api.nvim_get_current_buf()
|
||||||
-- Switch to different buffer
|
-- Switch to different buffer
|
||||||
vim.cmd 'bp'
|
vim.cmd 'exe "norm \\<C-6>"'
|
||||||
-- Delete saved buffer
|
-- Delete saved buffer
|
||||||
vim.api.nvim_buf_delete(buf, {})
|
vim.api.nvim_buf_delete(buf, {})
|
||||||
end, { desc = '[B]uffer [D]elete' })
|
end, { desc = '[B]uffer [D]elete' })
|
||||||
|
Loading…
Reference in New Issue
Block a user