customize bufferline
This commit is contained in:
parent
225e8f0ec5
commit
0f536be9c1
1 changed files with 16 additions and 1 deletions
|
@ -8,6 +8,7 @@ vim.wo.number = true
|
||||||
vim.wo.relativenumber = true
|
vim.wo.relativenumber = true
|
||||||
vim.wo.cursorline = true
|
vim.wo.cursorline = true
|
||||||
vim.opt.termguicolors = true
|
vim.opt.termguicolors = true
|
||||||
|
vim.o.mousemoveevent = true
|
||||||
|
|
||||||
--[ LSPCONFIG ]--
|
--[ LSPCONFIG ]--
|
||||||
|
|
||||||
|
@ -153,4 +154,18 @@ require('nvim-treesitter.configs').setup {
|
||||||
|
|
||||||
--[ BUFFERLINE ]--
|
--[ 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"
|
||||||
|
|
Loading…
Reference in a new issue