bufferline stuff

This commit is contained in:
elkowar 2021-04-29 22:16:20 +02:00
parent 029fc44270
commit b47fb640dd
2 changed files with 19 additions and 1 deletions

View file

@ -20,6 +20,7 @@
:enforce_regular_tabs false :enforce_regular_tabs false
:tab_size 10} :tab_size 10}
; https://github.com/akinsho/nvim-bufferline.lua/blob/4ebab39af2376b850724dd29c29579c8e024abe6/lua/bufferline/config.lua#L74
:highlights :highlights
{ :fill { :guibg colors.dark0 :guifg colors.light0} { :fill { :guibg colors.dark0 :guifg colors.light0}
:background visible :background visible
@ -34,6 +35,23 @@
:warning visible :warning visible
:warning_selected selected :warning_selected selected
:warning_visible visible :warning_visible visible
:duplicate visible
:duplicate_visible visible
:duplicate_selected selected
:diagnostic {:guibg colors.dark1 :guifg colors.neutral_red}
:diagnostic_visible {:guibg colors.dark1 :guifg colors.neutral_red}
:diagnostic_selected {:guibg colors.neutral_aqua :guifg colors.faded_red}
:info_diagnostic {:guibg "blue" :guifg colors.neutral_yellow}
:info_diagnostic_visible {:guibg "blue" :guifg colors.neutral_yellow}
:info_diagnostic_selected {:guibg "blue" :guifg colors.faded_yellow}
:warning_diagnostic {:guibg colors.dark1 :guifg colors.neutral_yellow}
:warning_diagnostic_visible {:guibg colors.dark1 :guifg colors.neutral_yellow}
:warning_diagnostic_selected {:guibg colors.neutral_aqua :guifg colors.faded_yellow}
:separator visible :separator visible
:indicator_selected {:guibg colors.neutral_aqua :guifg colors.neutral_aqua} :indicator_selected {:guibg colors.neutral_aqua :guifg colors.neutral_aqua}

View file

@ -45,6 +45,6 @@ do
local function _2_(cnt, lvl, diagnostics_dict) local function _2_(cnt, lvl, diagnostics_dict)
return (" (" .. cnt .. ")") return (" (" .. cnt .. ")")
end end
bufferline.setup({highlights = {background = visible, buffer_selected = selected, buffer_visible = visible, error = visible, error_selected = selected, error_visible = selected, fill = {guibg = colors.dark0, guifg = colors.light0}, indicator_selected = {guibg = colors.neutral_aqua, guifg = colors.neutral_aqua}, modified = visible, modified_selected = selected, modified_visible = visible, pick_selected = {guibg = colors.bright_red, guifg = colors.bright_red}, separator = visible, tab = {guibg = colors.bright_yellow, guifg = colors.bright_yellow}, tab_selected = {guibg = colors.bright_green, guifg = colors.bright_green}, warning = visible, warning_selected = selected, warning_visible = visible}, options = {diagnostics = "nvim_lsp", diagnostics_indicator = _2_, enforce_regular_tabs = false, show_buffer_close_icons = false, show_close_icon = false, show_tab_indicators = false, tab_size = 10}}) bufferline.setup({highlights = {background = visible, buffer_selected = selected, buffer_visible = visible, diagnostic = {guibg = colors.dark1, guifg = colors.neutral_red}, diagnostic_selected = {guibg = colors.neutral_aqua, guifg = colors.faded_red}, diagnostic_visible = {guibg = colors.dark1, guifg = colors.neutral_red}, duplicate = visible, duplicate_selected = selected, duplicate_visible = visible, error = visible, error_selected = selected, error_visible = selected, fill = {guibg = colors.dark0, guifg = colors.light0}, indicator_selected = {guibg = colors.neutral_aqua, guifg = colors.neutral_aqua}, info_diagnostic = {guibg = "blue", guifg = colors.neutral_yellow}, info_diagnostic_selected = {guibg = "blue", guifg = colors.faded_yellow}, info_diagnostic_visible = {guibg = "blue", guifg = colors.neutral_yellow}, modified = visible, modified_selected = selected, modified_visible = visible, pick_selected = {guibg = colors.bright_red, guifg = colors.bright_red}, separator = visible, tab = {guibg = colors.bright_yellow, guifg = colors.bright_yellow}, tab_selected = {guibg = colors.bright_green, guifg = colors.bright_green}, warning = visible, warning_diagnostic = {guibg = colors.dark1, guifg = colors.neutral_yellow}, warning_diagnostic_selected = {guibg = colors.neutral_aqua, guifg = colors.faded_yellow}, warning_diagnostic_visible = {guibg = colors.dark1, guifg = colors.neutral_yellow}, warning_selected = selected, warning_visible = visible}, options = {diagnostics = "nvim_lsp", diagnostics_indicator = _2_, enforce_regular_tabs = false, show_buffer_close_icons = false, show_close_icon = false, show_tab_indicators = false, tab_size = 10}})
end end
return utils.highlight("BufferLineInfoSelected", {bg = colors.neutral_aqua, fg = colors.dark0, gui = "NONE"}) return utils.highlight("BufferLineInfoSelected", {bg = colors.neutral_aqua, fg = colors.dark0, gui = "NONE"})