kickstart.nvim/lua/custom/plugins/barbar.lua

13 lines
465 B
Lua
Raw Permalink Normal View History

return {
'romgrk/barbar.nvim',
dependencies = {
'nvim-tree/nvim-web-devicons',
},
config = function()
require('barbar').setup()
2024-10-09 17:03:09 +02:00
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,
}