omg-nvim/lua/plugins/barbar.lua
2024-11-19 00:30:27 +03:00

28 lines
681 B
Lua

local g = vim.g
return {
"romgrk/barbar.nvim",
dependencies = {
"lewis6991/gitsigns.nvim", -- OPTIONAL: for git status
"nvim-tree/nvim-web-devicons", -- OPTIONAL: for file icons
},
init = function()
g.barbar_auto_setup = false
end,
opts = {
-- lazy.nvim will automatically call setup for you. put your options here, anything missing will use the default:
animation = true,
gitsigns = {
added = { enabled = true, icon = "+" },
changed = { enabled = true, icon = "~" },
deleted = { enabled = true, icon = "-" },
},
insert_at_start = true,
auto_hide = true,
sidebar_filetypes = {
["neo-tree"] = { event = "BufWipeout" },
},
-- …etc.
},
}