Skip to content

Commit

Permalink
feat(bufferline): added siagnostic icons
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 2, 2023
1 parent 4d2327d commit 7b9d409
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion lua/lazyvim/plugins/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,26 @@ return {
{
"akinsho/nvim-bufferline.lua",
event = "BufAdd",
config = true,
config = {
options = {
diagnostics = "nvim_lsp",
always_show_bufferline = false,
diagnostics_indicator = function(_, _, diag)
local icons = require("lazyvim.config.icons").diagnostics
local ret = (diag.error and icons.Error .. diag.error .. " " or "")
.. (diag.warning and icons.Warn .. diag.warning or "")
return vim.trim(ret)
end,
offsets = {
{
filetype = "neo-tree",
text = "Neo-tree",
highlight = "Directory",
text_align = "left",
},
},
},
},
},

-- statusline
Expand Down

0 comments on commit 7b9d409

Please sign in to comment.