mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-11-06 03:12:24 +00:00
bufferline stuff
This commit is contained in:
parent
029fc44270
commit
b47fb640dd
2 changed files with 19 additions and 1 deletions
|
@ -20,6 +20,7 @@
|
|||
:enforce_regular_tabs false
|
||||
:tab_size 10}
|
||||
|
||||
; https://github.com/akinsho/nvim-bufferline.lua/blob/4ebab39af2376b850724dd29c29579c8e024abe6/lua/bufferline/config.lua#L74
|
||||
:highlights
|
||||
{ :fill { :guibg colors.dark0 :guifg colors.light0}
|
||||
:background visible
|
||||
|
@ -34,6 +35,23 @@
|
|||
:warning visible
|
||||
:warning_selected selected
|
||||
: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
|
||||
:indicator_selected {:guibg colors.neutral_aqua :guifg colors.neutral_aqua}
|
||||
|
||||
|
|
|
@ -45,6 +45,6 @@ do
|
|||
local function _2_(cnt, lvl, diagnostics_dict)
|
||||
return (" (" .. cnt .. ")")
|
||||
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
|
||||
return utils.highlight("BufferLineInfoSelected", {bg = colors.neutral_aqua, fg = colors.dark0, gui = "NONE"})
|
Loading…
Reference in a new issue