nvim-config/lua/configs/bufferline.lua
2024-01-04 16:10:59 -08:00

36 lines
718 B
Lua

local M = {}
function M.config()
local status_ok, bufferline = pcall(require, 'bufferline')
if not status_ok then
return
end
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 M