2022-10-01 11:46:18 +00:00
|
|
|
local status_ok, bufferline = pcall(require, "bufferline")
|
|
|
|
if not status_ok then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
bufferline.setup({
|
|
|
|
options = {
|
|
|
|
close_command = "Bdelete! %d", -- can be a string | function, see "Mouse actions"
|
|
|
|
right_mouse_command = "Bdelete! %d", -- can be a string | function, see "Mouse actions"
|
2022-11-05 12:30:40 +00:00
|
|
|
offsets = {
|
|
|
|
{ filetype = "neo-tree", text = "", padding = 1 },
|
|
|
|
{ filetype = "dapui_scopes", text = "", padding = 1 },
|
|
|
|
},
|
2022-12-07 12:53:59 +00:00
|
|
|
indicator = {
|
|
|
|
style = "none",
|
|
|
|
},
|
2022-10-01 11:46:18 +00:00
|
|
|
},
|
|
|
|
highlights = {
|
|
|
|
fill = {
|
|
|
|
fg = { attribute = "fg", highlight = "#ff0000" },
|
|
|
|
bg = { attribute = "bg", highlight = "TabLine" },
|
|
|
|
},
|
|
|
|
background = {
|
|
|
|
fg = { attribute = "fg", highlight = "TabLine" },
|
|
|
|
bg = { attribute = "bg", highlight = "TabLine" },
|
|
|
|
},
|
|
|
|
|
|
|
|
buffer_visible = {
|
|
|
|
fg = { attribute = "fg", highlight = "TabLine" },
|
|
|
|
bg = { attribute = "bg", highlight = "TabLine" },
|
|
|
|
},
|
|
|
|
|
|
|
|
close_button = {
|
|
|
|
fg = { attribute = "fg", highlight = "TabLine" },
|
|
|
|
bg = { attribute = "bg", highlight = "TabLine" },
|
|
|
|
},
|
|
|
|
close_button_visible = {
|
|
|
|
fg = { attribute = "fg", highlight = "TabLine" },
|
|
|
|
bg = { attribute = "bg", highlight = "TabLine" },
|
|
|
|
},
|
|
|
|
|
|
|
|
tab_selected = {
|
|
|
|
fg = { attribute = "fg", highlight = "Normal" },
|
|
|
|
bg = { attribute = "bg", highlight = "Normal" },
|
|
|
|
},
|
|
|
|
tab = {
|
|
|
|
fg = { attribute = "fg", highlight = "TabLine" },
|
|
|
|
bg = { attribute = "bg", highlight = "TabLine" },
|
|
|
|
},
|
|
|
|
tab_close = {
|
|
|
|
fg = { attribute = "fg", highlight = "TabLineSel" },
|
|
|
|
bg = { attribute = "bg", highlight = "Normal" },
|
|
|
|
},
|
|
|
|
|
|
|
|
duplicate_selected = {
|
|
|
|
fg = { attribute = "fg", highlight = "TabLineSel" },
|
|
|
|
bg = { attribute = "bg", highlight = "TabLineSel" },
|
|
|
|
italic = true,
|
|
|
|
},
|
|
|
|
duplicate_visible = {
|
|
|
|
fg = { attribute = "fg", highlight = "TabLine" },
|
|
|
|
bg = { attribute = "bg", highlight = "TabLine" },
|
|
|
|
italic = true,
|
|
|
|
},
|
|
|
|
duplicate = {
|
|
|
|
fg = { attribute = "fg", highlight = "TabLine" },
|
|
|
|
bg = { attribute = "bg", highlight = "TabLine" },
|
|
|
|
italic = true,
|
|
|
|
},
|
|
|
|
|
|
|
|
modified = {
|
|
|
|
fg = { attribute = "fg", highlight = "TabLine" },
|
|
|
|
bg = { attribute = "bg", highlight = "TabLine" },
|
|
|
|
},
|
|
|
|
modified_selected = {
|
|
|
|
fg = { attribute = "fg", highlight = "Normal" },
|
|
|
|
bg = { attribute = "bg", highlight = "Normal" },
|
|
|
|
},
|
|
|
|
modified_visible = {
|
|
|
|
fg = { attribute = "fg", highlight = "TabLine" },
|
|
|
|
bg = { attribute = "bg", highlight = "TabLine" },
|
|
|
|
},
|
|
|
|
|
|
|
|
separator = {
|
|
|
|
fg = { attribute = "bg", highlight = "TabLine" },
|
|
|
|
bg = { attribute = "bg", highlight = "TabLine" },
|
|
|
|
},
|
|
|
|
separator_selected = {
|
|
|
|
fg = { attribute = "bg", highlight = "Normal" },
|
|
|
|
bg = { attribute = "bg", highlight = "Normal" },
|
|
|
|
},
|
|
|
|
indicator_selected = {
|
|
|
|
fg = { attribute = "fg", highlight = "LspDiagnosticsDefaultHint" },
|
|
|
|
bg = { attribute = "bg", highlight = "Normal" },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|