Add diagnostics to bufferline

This commit is contained in:
Marko Korhonen 2023-11-18 22:31:29 +02:00
parent 769fcf82ef
commit 61577153be
No known key found for this signature in database
GPG Key ID: A7F78BCB859CD890

View File

@ -2,4 +2,13 @@ return {
"akinsho/bufferline.nvim",
version = "*",
dependencies = { "kyazdani42/nvim-web-devicons" },
opts = {
options = {
diagnostics = "nvim_lsp",
diagnostics_indicator = function(count, level)
local icon = level:match("error") and "" or ""
return " " .. icon .. count
end,
},
},
}