2021-07-15 05:48:10 +01:00
|
|
|
local global_theme = "themes/" .. vim.g.nvchad_theme
|
|
|
|
local colors = require(global_theme)
|
|
|
|
|
2021-07-17 12:14:52 +01:00
|
|
|
local present, bufferline = pcall(require, "bufferline")
|
|
|
|
if not present then
|
2021-07-15 16:43:17 +01:00
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
bufferline.setup {
|
2021-03-13 01:23:02 +00:00
|
|
|
options = {
|
2021-06-14 03:27:56 +01:00
|
|
|
offsets = {{filetype = "NvimTree", text = "", padding = 1}},
|
2021-03-13 01:23:02 +00:00
|
|
|
buffer_close_icon = "",
|
2021-04-26 09:14:51 +01:00
|
|
|
modified_icon = "",
|
2021-06-14 03:27:56 +01:00
|
|
|
close_icon = "",
|
2021-03-13 01:23:02 +00:00
|
|
|
left_trunc_marker = "",
|
|
|
|
right_trunc_marker = "",
|
|
|
|
max_name_length = 14,
|
|
|
|
max_prefix_length = 13,
|
2021-05-06 15:19:02 +01:00
|
|
|
tab_size = 20,
|
2021-05-09 11:23:59 +01:00
|
|
|
show_tab_indicators = true,
|
|
|
|
enforce_regular_tabs = false,
|
2021-03-13 01:23:02 +00:00
|
|
|
view = "multiwindow",
|
|
|
|
show_buffer_close_icons = true,
|
2021-05-09 11:23:59 +01:00
|
|
|
separator_style = "thin",
|
2021-07-15 05:48:10 +01:00
|
|
|
mappings = true,
|
|
|
|
always_show_bufferline = true
|
|
|
|
},
|
|
|
|
highlights = {
|
|
|
|
fill = {
|
|
|
|
guifg = colors.grey_fg,
|
|
|
|
guibg = colors.black2
|
|
|
|
},
|
|
|
|
background = {
|
|
|
|
guifg = colors.grey_fg,
|
|
|
|
guibg = colors.black2
|
|
|
|
},
|
|
|
|
-- buffers
|
|
|
|
buffer_visible = {
|
|
|
|
guifg = colors.light_grey,
|
|
|
|
guibg = colors.black2
|
|
|
|
},
|
|
|
|
buffer_selected = {
|
|
|
|
guifg = colors.white,
|
|
|
|
guibg = colors.black,
|
|
|
|
gui = "bold"
|
|
|
|
},
|
|
|
|
-- tabs
|
|
|
|
tab = {
|
|
|
|
guifg = colors.light_grey,
|
|
|
|
guibg = colors.one_bg3
|
|
|
|
},
|
|
|
|
tab_selected = {
|
|
|
|
guifg = colors.black2,
|
|
|
|
guibg = colors.nord_blue
|
|
|
|
},
|
|
|
|
tab_close = {
|
|
|
|
guifg = colors.red,
|
|
|
|
guibg = colors.black
|
|
|
|
},
|
|
|
|
indicator_selected = {
|
|
|
|
guifg = colors.black,
|
|
|
|
guibg = colors.black
|
|
|
|
},
|
|
|
|
-- separators
|
|
|
|
separator = {
|
|
|
|
guifg = colors.black2,
|
|
|
|
guibg = colors.black2
|
|
|
|
},
|
|
|
|
separator_visible = {
|
|
|
|
guifg = colors.black2,
|
|
|
|
guibg = colors.black2
|
|
|
|
},
|
|
|
|
separator_selected = {
|
|
|
|
guifg = colors.black2,
|
|
|
|
guibg = colors.black2
|
|
|
|
},
|
|
|
|
-- modified
|
|
|
|
modified = {
|
|
|
|
guifg = colors.red,
|
|
|
|
guibg = colors.black2
|
|
|
|
},
|
|
|
|
modified_visible = {
|
|
|
|
guifg = colors.red,
|
|
|
|
guibg = colors.black2
|
|
|
|
},
|
|
|
|
modified_selected = {
|
|
|
|
guifg = colors.green,
|
|
|
|
guibg = colors.black
|
|
|
|
},
|
|
|
|
-- close buttons
|
|
|
|
|
|
|
|
close_button = {
|
|
|
|
guifg = colors.light_grey,
|
|
|
|
guibg = colors.black2
|
|
|
|
},
|
|
|
|
close_button_visible = {
|
|
|
|
guifg = colors.light_grey,
|
|
|
|
guibg = colors.black2
|
|
|
|
},
|
|
|
|
close_button_selected = {
|
|
|
|
guifg = colors.red,
|
|
|
|
guibg = colors.black
|
|
|
|
}
|
2021-03-13 01:23:02 +00:00
|
|
|
}
|
2021-03-07 14:22:30 +00:00
|
|
|
}
|