add folke/snacks plugin
add keybinding ctrl-w d to close buffer without closing window
This commit is contained in:
parent
b341a42762
commit
ef1029c595
2 changed files with 20 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ return {
|
|||
map('n', '<S-Tab>', ':bp!<Enter>', { desc = 'Go to previous buffer' }),
|
||||
map('n', '<leader>bd', ':bd<Enter>', { desc = 'close the current buffer' }),
|
||||
map('n', '<leader>bl', ':FlyBuf<Enter>', { desc = 'open up a list of all buffers in a float' }),
|
||||
map('n', '<C-w>d', ':bp<bar>sp<bar>bn<bar>bd<CR>', { desc = 'close the current buffer' }),
|
||||
|
||||
-- neo-tree
|
||||
vim.keymap.set('n', '<leader>e', ':Neotree reveal<CR>', { desc = 'Open file browser' }),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue