30 lines
657 B
Lua
30 lines
657 B
Lua
|
local function config()
|
||
|
local bufferline = require('bufferline')
|
||
|
bufferline.setup({
|
||
|
options = {
|
||
|
close_command = 'Bdelete! %d', -- use vim-bbye
|
||
|
right_mouse_command = 'Bdelete! %d', -- use vim-bbye
|
||
|
offsets = {
|
||
|
{
|
||
|
filetype = 'NvimTree',
|
||
|
text = '',
|
||
|
padding = 1,
|
||
|
},
|
||
|
},
|
||
|
show_buffer_close_icons = false,
|
||
|
show_close_icon = false,
|
||
|
tab_size = 12, -- minimum size
|
||
|
max_name_length = 40,
|
||
|
max_prefix_length = 13,
|
||
|
show_tab_indicators = true,
|
||
|
enforce_regular_tabs = false,
|
||
|
view = 'multiwindow',
|
||
|
separator_style = 'thick',
|
||
|
always_show_bufferline = true,
|
||
|
diagnostics = false,
|
||
|
},
|
||
|
})
|
||
|
end
|
||
|
|
||
|
return config
|