feat(bufferline): added siagnostic icons
This commit is contained in:
@ -35,7 +35,26 @@ return {
|
|||||||
{
|
{
|
||||||
"akinsho/nvim-bufferline.lua",
|
"akinsho/nvim-bufferline.lua",
|
||||||
event = "BufAdd",
|
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
|
-- statusline
|
||||||
|
Reference in New Issue
Block a user