return { "romgrk/barbar.nvim", event = "BufNew", dependencies = { "lewis6991/gitsigns.nvim", "nvim-tree/nvim-web-devicons", }, init = function() vim.g.barbar_auto_setup = false local map = vim.api.nvim_set_keymap local opts = { noremap = true, silent = true } map("n", "", "BufferPrevious", opts) map("n", "", "BufferNext", opts) map("n", "", "BufferMovePrevious", opts) map("n", ">", "BufferMoveNext", opts) map("n", "", "BufferGoto 1", opts) map("n", "", "BufferGoto 2", opts) map("n", "", "BufferGoto 3", opts) map("n", "", "BufferGoto 4", opts) map("n", "", "BufferGoto 5", opts) map("n", "", "BufferGoto 6", opts) map("n", "", "BufferGoto 7", opts) map("n", "", "BufferGoto 8", opts) map("n", "", "BufferGoto 9", opts) map("n", "", "BufferLast", opts) map("n", "", "BufferPin", opts) map("n", "", "BufferClose", opts) map("n", "", "BufferPick", opts) end, opts = {}, }