require("bufferline").setup { options = { mode = "tabs", separator_style = "slant", } } local opts = { noremap = true, silent = true } vim.api.nvim_set_keymap("n", "1", "BufferLineGoToBuffer 1", opts) vim.api.nvim_set_keymap("n", "2", "BufferLineGoToBuffer 2", opts) vim.api.nvim_set_keymap("n", "3", "BufferLineGoToBuffer 3", opts) vim.api.nvim_set_keymap("n", "4", "BufferLineGoToBuffer 4", opts) -- I want to be to close the current tab with a single keypress vim.api.nvim_set_keymap("n", "tc", "tabclose", opts) -- I want to be able to create a new tab with a single keypress vim.api.nvim_set_keymap("n", "tn", "tabnew", opts)