From b47fb640dd79441165e77ec408f84caa749ce1e0 Mon Sep 17 00:00:00 2001 From: elkowar <5300871+elkowar@users.noreply.github.com> Date: Thu, 29 Apr 2021 22:16:20 +0200 Subject: [PATCH] bufferline stuff --- files/.config/nvim/fnl/plugins/bufferline.fnl | 18 ++++++++++++++++++ files/.config/nvim/lua/plugins/bufferline.lua | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/files/.config/nvim/fnl/plugins/bufferline.fnl b/files/.config/nvim/fnl/plugins/bufferline.fnl index 85a6b3e..bdd6866 100644 --- a/files/.config/nvim/fnl/plugins/bufferline.fnl +++ b/files/.config/nvim/fnl/plugins/bufferline.fnl @@ -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} diff --git a/files/.config/nvim/lua/plugins/bufferline.lua b/files/.config/nvim/lua/plugins/bufferline.lua index c81eeb9..e052a77 100644 --- a/files/.config/nvim/lua/plugins/bufferline.lua +++ b/files/.config/nvim/lua/plugins/bufferline.lua @@ -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"}) \ No newline at end of file