38 lines
732 B
Lua
38 lines
732 B
Lua
local status_ok, bufferline = pcall(require, "bufferline")
|
|
|
|
if not status_ok then
|
|
return
|
|
end
|
|
|
|
bufferline.setup({
|
|
options = {
|
|
mode = "tabs",
|
|
offsets = {
|
|
{ filetype = "NvimTree", text = "", padding = 1 },
|
|
{ filetype = "neo-tree", text = "", padding = 1 },
|
|
},
|
|
style_preset = bufferline.style_preset.minimal,
|
|
buffer_close_icon = "",
|
|
modified_icon = "",
|
|
close_icon = "",
|
|
max_name_length = 14,
|
|
max_prefix_length = 13,
|
|
tab_size = 20,
|
|
separator_style = { "", "" },
|
|
hover = {
|
|
enabled = true,
|
|
delay = 200,
|
|
reveal = { 'close' }
|
|
}
|
|
|
|
-- indicator = {
|
|
-- style = "underline"
|
|
-- },
|
|
-- highlights = {
|
|
-- tab_separator_selected = {
|
|
-- underline = "0xc8c093",
|
|
-- },
|
|
-- }
|
|
},
|
|
})
|