1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
-- ~/.config/nvim/lua/config/tabs.lua
return function()
-- Disable auto-setup
vim.g.barbar_auto_setup = false -- disable auto-setup
require'barbar'.setup {
-- WARN: do not copy everything below into your config!
-- It is just an example of what configuration options there are.
-- The defaults are suitable for most people.
-- Enable/disable animations
animation = true,
-- Automatically hide the tabline when there are this many buffers left.
-- Set to any value >=0 to enable.
auto_hide = 1,
exclude_ft = { 'nvim-undotree' },
-- icons = {
-- -- Configure the base icons on the bufferline.
-- -- Valid options to display the buffer index and -number are `true`, 'superscript' and 'subscript'
-- buffer_index = false,
-- buffer_number = false,
-- button = '',
-- -- Enables / disables diagnostic symbols
-- diagnostics = {
-- [vim.diagnostic.severity.ERROR] = {enabled = true, icon = 'ff'},
-- [vim.diagnostic.severity.WARN] = {enabled = false},
-- [vim.diagnostic.severity.INFO] = {enabled = false},
-- [vim.diagnostic.severity.HINT] = {enabled = true},
-- },
-- gitsigns = {
-- added = {enabled = true, icon = '+'},
-- changed = {enabled = true, icon = '~'},
-- deleted = {enabled = true, icon = '-'},
-- },
-- filetype = {
-- -- Sets the icon's highlight group.
-- -- If false, will use nvim-web-devicons colors
-- custom_colors = false,
-- -- Requires `nvim-web-devicons` if `true`
-- enabled = true,
-- },
-- separator = {left = '▎', right = ''},
-- -- If true, add an additional separator at the end of the buffer list
-- separator_at_end = true,
-- -- Configure the icons on the bufferline when modified or pinned.
-- -- Supports all the base icon options.
-- modified = {button = '●'},
-- pinned = {button = '', filename = true},
-- -- Use a preconfigured buffer appearance— can be 'default', 'powerline', or 'slanted'
-- preset = 'default',
-- -- Configure the icons on the bufferline based on the visibility of a buffer.
-- -- Supports all the base icon options, plus `modified` and `pinned`.
-- alternate = {filetype = {enabled = false}},
-- current = {buffer_index = true},
-- inactive = {button = '×'},
-- visible = {modified = {buffer_number = false}},
-- },
}
end
|