Keymaps bD and br, buffer force delete and buffer reload respectively
This commit is contained in:
parent
0ef9933be3
commit
1fdb363a76
1 changed files with 2 additions and 0 deletions
|
@ -68,7 +68,9 @@ vim.keymap.set('n', '<S-h>', '<cmd>bprevious<cr>', { desc = 'Prev Buffer' })
|
|||
vim.keymap.set('n', '<S-l>', '<cmd>bnext<cr>', { desc = 'Next Buffer' })
|
||||
vim.keymap.set('n', '<leader>bb', '<cmd>e #<cr>', { desc = 'Switch to Other Buffer' })
|
||||
vim.keymap.set('n', '<leader>bd', '<cmd>:bd<cr>', { desc = 'Delete Buffer and Window' })
|
||||
vim.keymap.set('n', '<leader>bD', '<cmd>:bd!<cr>', { desc = 'Force Delete Buffer and Window (discard changes)' })
|
||||
vim.keymap.set('n', '<leader>bo', '<cmd>%bd|e#|bd#<cr>', { desc = 'Delete Other Buffers' })
|
||||
vim.keymap.set('n', '<leader>br', '<cmd>:e! %<cr>', { desc = '[B]uffer [R]eload (discard changes)' })
|
||||
|
||||
-- Tabs
|
||||
vim.keymap.set('n', '<leader><tab>l', '<cmd>tablast<cr>', { desc = 'Last Tab' })
|
||||
|
|
Loading…
Reference in a new issue