add bufferline highlights

This commit is contained in:
siduck76 2021-07-15 10:18:10 +05:30
parent 7658c3d978
commit c4a8ecf47f
3 changed files with 83 additions and 35 deletions
lua/plugins

View file

@ -1,3 +1,6 @@
local global_theme = "themes/" .. vim.g.nvchad_theme
local colors = require(global_theme)
require "bufferline".setup {
options = {
offsets = {{filetype = "NvimTree", text = "", padding = 1}},
@ -14,6 +17,84 @@ require "bufferline".setup {
view = "multiwindow",
show_buffer_close_icons = true,
separator_style = "thin",
mappings = "true"
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
}
}
}