customize bufferline

This commit is contained in:
Pim Kunis 2023-10-23 21:33:27 +02:00
parent 225e8f0ec5
commit 0f536be9c1

View file

@ -8,6 +8,7 @@ vim.wo.number = true
vim.wo.relativenumber = true
vim.wo.cursorline = true
vim.opt.termguicolors = true
vim.o.mousemoveevent = true
--[ LSPCONFIG ]--
@ -153,4 +154,18 @@ require('nvim-treesitter.configs').setup {
--[ BUFFERLINE ]--
require("bufferline").setup{}
require("bufferline").setup{
options = {
diagnostics = 'nvim_lsp',
diagnostics_indicator = function(count, level, diagnostics_dict, context)
local icon = level:match("error") and "" or ""
return " " .. icon .. count
end,
separator_style = "slant",
hover = {
enabled = true,
reveal = {'close'},
},
},
}
require("bufferline").seperator_style = "slanted"