--[ -- A plugin to have powerfull tabs. --] return { "akinsho/bufferline.nvim", version = "*", dependencies = "nvim-tree/nvim-web-devicons", config = function() vim.opt.termguicolors = true require("bufferline").setup({ options = { separator_style = "slope", -- padded_slope doesn't render properly diagnostics = "nvim_lsp", }, }) vim.keymap.set("n", "", "bnext") vim.keymap.set("n", "", "bprev") vim.keymap.set("n", "tx", function() vim.api.nvim_command("bp|sp|bn|bd") end, { desc = "Close current bufferline tab" }) vim.keymap.set("n", "tl", function() vim.api.nvim_command("BufferLineCloseLeft") end, { desc = "Close bufferline tabs on the left" }) vim.keymap.set("n", "tr", function() vim.api.nvim_command("BufferLineCloseRight") end, { desc = "Close bufferline tabs on the right" }) vim.keymap.set("n", "to", function() vim.api.nvim_command("BufferLineCloseOthers") end, { desc = "Close others bufferline tabs" }) end, }