Skip to content

Commit

Permalink
add highlight overrides to bufferline
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewies committed Nov 29, 2021
1 parent e01beb1 commit 1f11e2d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions nvim/.config/nvim/lua/jakewies/bufferline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,36 @@ require('bufferline').setup {
enforce_regular_tabs = false,
-- hide separators
separator_style = {'',''},
},
highlights = {
fill = {
guifg = {
attribute = 'fg',
highlight = 'NvimTreeNormal'
},
guibg = {
attribute = 'bg',
highlight = 'NvimTreeNormal'
}
},
-- style of unselected buffers
background = {
guibg = {
attribute = 'bg',
highlight = 'NvimTreeNormal'
}
},
-- selected buffer, but not focused. Ex: nvim-tree has focus
-- a little wonky when two+ buffers are selected (splits)
buffer_visible = {
guibg = {
attribute = 'bg',
highlight = 'BufferLineBufferSelected'
}
},
-- remove text styles from selected buffer
buffer_selected = {
gui = "none"
},
}
}

0 comments on commit 1f11e2d

Please sign in to comment.