return { { 'romgrk/barbar.nvim', dependencies = { 'lewis6991/gitsigns.nvim', -- OPTIONAL: for git status 'nvim-tree/nvim-web-devicons', -- OPTIONAL: for file icons }, init = function() vim.g.barbar_auto_setup = false end, opts = { animation = true, insert_at_start = true, }, version = '^1.0.0', keys = { -- Move to prev/next tab { "", "BufferPrevious", mode = "n", desc = "Prev tab" }, { "", "BufferNext", mode = "n", desc = "Next tab" }, -- Re-order buffers { "", "BufferMovePrevious", mode = "n", desc = "Move tab left" }, { "", "BufferMoveNext", mode = "n", desc = "Move tab right" }, -- Close buffers { "", "BufferClose", mode = "n", desc = "Close tab" }, { "", "BufferCloseAllButCurrent", mode = "n", desc = "Close all but current" }, -- Goto tab in position… { "1", "BufferGoto 1", mode = "n", desc = "Go to tab 1" }, { "2", "BufferGoto 2", mode = "n", desc = "Go to tab 2" }, { "3", "BufferGoto 3", mode = "n", desc = "Go to tab 3" }, { "4", "BufferGoto 4", mode = "n", desc = "Go to tab 4" }, { "5", "BufferGoto 5", mode = "n", desc = "Go to tab 5" }, { "6", "BufferGoto 6", mode = "n", desc = "Go to tab 6" }, { "7", "BufferGoto 7", mode = "n", desc = "Go to tab 7" }, { "8", "BufferGoto 8", mode = "n", desc = "Go to tab 8" }, { "9", "BufferGoto 9", mode = "n", desc = "Go to tab 9" }, { "0", "BufferLast", mode = "n", desc = "Go to last tab" }, }, }, }