return { { "romgrk/barbar.nvim", dependencies = { 'lewis6991/gitsigns.nvim', "nvim-tree/nvim-web-devicons" }, init = function() vim.g.barbar_auto_setup = false -- disable auto-setup local map = require("helpers.keys").map -- move to previous/next map('n', '', 'BufferPrevious', "switch to previous buffer") map('n', '', 'BufferNext', "switch to next buffer") -- re-order to previous/next map('n', '', 'BufferMovePrevious', "move buffer back") map('n', '', 'BufferMoveNext', "move buffer forward") -- goto buffer in position... map('n', '', 'BufferGoto 1') map('n', '', 'BufferGoto 2') map('n', '', 'BufferGoto 3') map('n', '', 'BufferGoto 4') map('n', '', 'BufferGoto 5') map('n', '', 'BufferGoto 6') map('n', '', 'BufferGoto 7') map('n', '', 'BufferGoto 8') map('n', '', 'BufferGoto 9') map('n', '', 'BufferLast') -- pin/unpin buffer map('n', '', 'BufferPin', "pin buffer") -- close buffer map('n', '', 'BufferClose', "close buffer") -- magic buffer-picking mode map('n', 'dg', 'BufferPick', "buffer picking mode") -- sort automatically by... map('n', 'db', 'BufferOrderByBufferNumber', "sort buffers by number") map('n', 'dd', 'BufferOrderByDirectory', "sort buffers by directory") map('n', 'dl', 'BufferOrderByLanguage', "sort buffers by language") map('n', 'dw', 'BufferOrderByWindowNumber', "sort buffers by window number") end, opts = { animation = false, auto_hide = true, tabpages = true, closable = true, clickable = false, icons = { diagnostics = { [vim.diagnostic.severity.ERROR] = { enabled = true, icon = '❌' }, [vim.diagnostic.severity.WARN] = { enabled = false }, [vim.diagnostic.severity.INFO] = { enabled = false }, [vim.diagnostic.severity.HINT] = { enabled = true }, }, filetype = { custom_colors = false, enabled = true, }, separator = { left = '▎', right = '' }, modified = { button = '' }, pinned = { button = '', filename = true, separator = { right = '' } }, }, insert_at_end = false, insert_at_start = false, maximum_padding = 1, minimum_padding = 1, maximum_length = 30, semantic_letters = true, letters = 'arstneoidhqwfpluy;zxcvkmARSTNEOIDHQWFPLUYZXCVKM', no_name_title = nil, }, }, }