local map = vim.api.nvim_set_keymap local opts = { noremap = true, silent = true } -- Move to previous/next map("n", "", "BufferPrevious", opts) map("n", "", "BufferNext", opts) -- Re-order to previous/next map("n", "", "BufferMovePrevious", opts) map("n", ">", "BufferMoveNext", opts) -- Goto buffer in position... 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) -- Pin/unpin buffer map("n", "", "BufferPin", opts) -- Close buffer map("n", "", "BufferClose", opts) vim.g.barbar_auto_setup = false local barbar = require("barbar") barbar.setup({ animation = false, auto_hide = true, tabpages = true, clickable = true, focus_on_close = "previous", icons = { gitsigns = { added = {enabled = true, icon = '+'}, changed = {enabled = true, icon = '~'}, deleted = {enabled = true, icon = '-'}, }, filetype = { custom_colors = false, enabled = false, }, separator = {left = "▎", right = ""}, modified = {button = "●"}, pinned = {button = "▲", filename = true}, inactive = {button = "x"}, button = "x", }, sidebar_filetypes = { NvimTree = true, undotree = {text = "undotree"}, }, })