diff --git a/config/nvim/lua/nifoc/config/bufferline.lua b/config/nvim/lua/nifoc/config/bufferline.lua index cf43aa0..ff14763 100644 --- a/config/nvim/lua/nifoc/config/bufferline.lua +++ b/config/nvim/lua/nifoc/config/bufferline.lua @@ -1,5 +1,23 @@ require('bufferline').setup{ options = { show_close_icon = false, + + diagnostics = "nvim_lsp", + diagnostics_indicator = function(count, level, diagnostics_dict, context) + if context.buffer:current() then + return '' + end + + return " (" .. count .. ")" + end, + + offsets = { + { + filetype = "NvimTree", + text = "File Explorer", + highlight = "Directory", + text_align = "left", + }, + }, } }