From 0f536be9c180d735530968f1f79ff2dadd30f302 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Mon, 23 Oct 2023 21:33:27 +0200 Subject: [PATCH] customize bufferline --- home-manager/neovim/neovim.lua | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/home-manager/neovim/neovim.lua b/home-manager/neovim/neovim.lua index fe77c97..594e16c 100644 --- a/home-manager/neovim/neovim.lua +++ b/home-manager/neovim/neovim.lua @@ -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"