kickstart.nvim/lua/custom/plugins/barbar.lua
2024-10-09 17:03:09 +02:00

13 lines
465 B
Lua

return {
'romgrk/barbar.nvim',
dependencies = {
'nvim-tree/nvim-web-devicons',
},
config = function()
require('barbar').setup()
vim.keymap.set('n', '<Tab>', ':BufferNext<CR>', { silent = true, desc = 'To buffer on the right' })
vim.keymap.set('n', '<S-Tab>', ':BufferPrevious<CR>', { silent = true, desc = 'To buffer on the left' })
vim.keymap.set('n', '<leader>x', ':BufferClose<CR>', { silent = true, desc = 'Close buffer' })
end,
}