2022-10-12 22:07:20 -04: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"
|
|
|
|
offsets = { { filetype = "NvimTree", text = "", padding = 1 } },
|
|
|
|
separator_style = "thin", -- | "thick" | "thin" | { 'any', 'any' },
|
2022-10-19 00:29:43 -04:00
|
|
|
always_show_bufferline = false
|
2022-10-12 22:07:20 -04: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" },
|
|
|
|
},
|
2022-10-19 00:29:43 -04:00
|
|
|
|
2022-10-12 22:07:20 -04:00
|
|
|
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='LspDiagnosticsDefaultError'},
|
|
|
|
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" },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|