From 01f7b7b0692fe96194d86a125806d80b2259dc1c Mon Sep 17 00:00:00 2001 From: Manuel Luna Date: Mon, 3 Jul 2023 22:17:37 -0600 Subject: [PATCH 1/2] add highlights --- lua/bufferline/config.lua | 7 +++++++ lua/bufferline/ui.lua | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lua/bufferline/config.lua b/lua/bufferline/config.lua index 0b76d64a..6b8f0a0a 100644 --- a/lua/bufferline/config.lua +++ b/lua/bufferline/config.lua @@ -268,7 +268,14 @@ local function derive_colors(preset) local underline_sp = has_underline_indicator and tabline_sel_bg or nil + local trunc_marker_fg = comment_fg + local trunc_marker_bg = separator_background_color + return { + trunc_marker = { + fg = trunc_marker_fg, + bg = trunc_marker_bg + }, fill = { fg = comment_fg, bg = separator_background_color, diff --git a/lua/bufferline/ui.lua b/lua/bufferline/ui.lua index 74a320ed..2c05070b 100644 --- a/lua/bufferline/ui.lua +++ b/lua/bufferline/ui.lua @@ -680,9 +680,9 @@ function M.tabline(items, tab_indicators) right_element_size = right_element_size, }) - local fill = hl.fill.hl_group - local left_marker = get_trunc_marker(left_trunc_icon, fill, fill, marker.left_count) - local right_marker = get_trunc_marker(right_trunc_icon, fill, fill, marker.right_count) + local marker_hl = hl.trunc_marker.hl_group + local left_marker = get_trunc_marker(left_trunc_icon, marker_hl, marker_hl, marker.left_count) + local right_marker = get_trunc_marker(right_trunc_icon, marker_hl, marker_hl, marker.right_count) local core = join( utils.merge_lists( From 014fb655eb1d1616e58f10eeec00a62c25d05423 Mon Sep 17 00:00:00 2001 From: Manuel Luna Date: Mon, 3 Jul 2023 22:23:34 -0600 Subject: [PATCH 2/2] docs --- doc/bufferline.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/bufferline.txt b/doc/bufferline.txt index 2d8d8e77..1b3484a0 100644 --- a/doc/bufferline.txt +++ b/doc/bufferline.txt @@ -1072,6 +1072,10 @@ NOTE: you can specify colors the same way you specify colors for fg = '', bg = '', }, + trunc_marker = { + fg = '', + bg = '', + } }; }) <