local map = vim.api.nvim_set_keymap local opts = { noremap = true, silent = true } -- Move to previous/next map('n', 'H', 'BufferPrevious', opts) map('n', 'L', 'BufferNext', opts) map('n', 'Q', 'BufferClose', opts) map('n', 'T', 'BufferRestore', opts) 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 = { sidebar_filetypes = { -- Use the default values: {event = 'BufWinLeave', text = '', align = 'left'} NvimTree = true, -- Or, specify the text used for the offset: undotree = { text = 'undotree', align = 'center', -- *optionally* specify an alignment (either 'left', 'center', or 'right') }, -- Or, specify the event which the sidebar executes when leaving: ['neo-tree'] = {event = 'BufWipeout'}, -- Or, specify all three Outline = {event = 'BufWinLeave', text = 'symbols-outline', align = 'right'}, }, keys = { { 'L', 'BufferNext' }, { 'H', 'BufferPrevious' }, { 'Q', 'BufferClose' }, { 'T', 'BufferRestore' } } }, version = '^1.0.0' }