Add diagnostics to bufferline

This commit is contained in:
Marko Korhonen 2023-11-18 22:31:29 +02:00
parent 769fcf82ef
commit 61577153be
Signed by: FunctionalHacker
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,
},
},
}