Skip to content

Commit 9807933

Browse files
author
Ali Shahid
committed
[nvim-bufferline.lua] fix tab color
1 parent b663686 commit 9807933

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

lua/plugins/nvim-bufferline_lua.lua

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ local bufferline_imported, bufferline = pcall(require, 'bufferline')
1919
if not bufferline_imported then return end
2020

2121
bufferline.setup {
22+
2223
options = {
24+
25+
mode = "buffers", -- set to "tabs" to only show tabpages instead
2326
numbers = "ordinal", -- "none" | "ordinal" | "buffer_id" | "both" | function({ ordinal, id, lower, raise }): string
2427
always_show_bufferline = false, -- don't show bufferline if there is only one file is opened
2528

@@ -55,7 +58,8 @@ bufferline.setup {
5558
show_close_icon = false,
5659
show_buffer_icons = true, -- disable filetype icons for buffers
5760
show_buffer_close_icons = false,
58-
show_tab_indicators = false,
61+
show_tab_indicators = true,
62+
enforce_regular_tabs = true, -- if set true, tabs will be prevented from extending beyond the tab size and all tabs will be the same length
5963

6064
view = "multiwindow",
6165
-- can also be a table containing 2 custom separators
@@ -98,6 +102,16 @@ bufferline.setup {
98102
numbers = {
99103
guibg = {highlight = "BuffNumbers", attribute = "bg"},
100104
},
105+
106+
tab_selected = {
107+
guifg = {highlight = "TabSelectedFG", attribute = "fg"},
108+
guibg = {highlight = "TabSelectedBG", attribute = "bg"},
109+
},
110+
tab = {
111+
guifg = {highlight = "TabFG", attribute = "fg"},
112+
guibg = {highlight = "TabBG", attribute = "bg"},
113+
},
114+
101115
-- duplicate_visible = {
102116
-- },
103117
-- close_button = {

0 commit comments

Comments
 (0)