feat: bufferline tabs

This commit is contained in:
ralvescosta 2025-03-16 21:55:39 -03:00
parent 7d37624530
commit e2cfbaa1fa
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
return {
{
'akinsho/bufferline.nvim',
version = '*',
dependencies = 'nvim-tree/nvim-web-devicons',
config = function()
require('bufferline').setup {
options = {
numbers = 'ordinal',
diagnostics = 'nvim_lsp',
hover = {
enabled = true,
delay = 200,
reveal = { 'close' },
},
},
}
vim.keymap.set('n', '<Tab>', ':BufferLineCycleNext<CR>', { desc = '[B]ufferLine next' })
vim.keymap.set('n', '<S-Tab>', ':BufferLineCyclePrev<CR>', { desc = '[B]ufferLine prev' })
vim.keymap.set('n', '<Leader>x', ':bp | bd #<CR>', { desc = '[B]ufferLine close current' })
end,
},
}