23 lines
557 B
Lua
23 lines
557 B
Lua
return {
|
|
"romgrk/barbar.nvim",
|
|
dependencies = {
|
|
"lewis6991/gitsigns.nvim", -- OPTIONAL: for git status
|
|
"nvim-tree/nvim-web-devicons", -- OPTIONAL: for file icons
|
|
},
|
|
keys = {
|
|
{ "<Tab>", "<cmd>BufferNext<cr>", desc = "next tab" },
|
|
{ "<S-Tab>", "<cmd>BufferPrevious<cr>", desc = "previous tab" },
|
|
{ "<leader>x", "<cmd>BufferClose<cr>", desc = "close tab" },
|
|
},
|
|
init = function()
|
|
vim.g.barbar_auto_setup = false
|
|
end,
|
|
config = function()
|
|
require("barbar").setup({
|
|
animation = true,
|
|
auto_hide = true,
|
|
clickable = true,
|
|
})
|
|
end,
|
|
}
|