1
1
Fork 0

buffer bar

This commit is contained in:
Gaiety 2026-04-04 20:26:12 -06:00
parent 36d393a994
commit 8dc4bf255c
4 changed files with 27 additions and 0 deletions

27
nvim/lua/buffers.lua Normal file
View file

@ -0,0 +1,27 @@
vim.pack.add({
'https://github.com/nvim-tree/nvim-web-devicons',
'https://github.com/lewis6991/gitsigns.nvim',
'https://github.com/romgrk/barbar.nvim',
})
-- Keys
vim.keymap.set('n',
'<tab>',
'<cmd>BufferNext<cr>',
{ desc = 'Buffer Next' }
)
vim.keymap.set('n',
'<s-tab>',
'<cmd>BufferPrevious<cr>',
{ desc = 'Buffer Previous' }
)
vim.keymap.set('n',
'<leader><leader>',
'<cmd>b#<cr>',
{ desc = 'Buffer Last' }
)
vim.keymap.set('n',
'<leader>w',
'<cmd>BufferClose<cr>',
{ desc = 'Buffer Close' }
)