Neovim/lua/plugins/barbar.lua

33 lines
1015 B
Lua

return {
{
'romgrk/barbar.nvim',
init = function() vim.g.barbar_auto_setup = false end,
opts = function ()
local options = require('options')
return {
animation = true,
tabpages = true,
insert_at_end = true,
maximum_padding = 4,
sidebar_filetypes = {
NvimTree = true,
},
clickable = true,
pinned = {
button = '',
filename = true
},
icons = {
separator = {left = '', right = ''},
diagnostics = {
[vim.diagnostic.severity.ERROR] = {enabled = true, icon = options.lsp.icons.Error},
[vim.diagnostic.severity.WARN] = {enabled = false, icon = options.lsp.icons.Warn},
[vim.diagnostic.severity.INFO] = {enabled = false, icon = options.lsp.icons.Info},
[vim.diagnostic.severity.HINT] = {enabled = true}, icon = options.lsp.icons.Hint},
}
}
end
}
}