nvim/lua/plugins/diagflow.lua

19 lines
523 B
Lua
Raw Normal View History

2024-06-17 15:22:39 +07:00
return {
"dgagn/diagflow.nvim",
event = { "LspAttach" },
opts = {
scope = "line",
show_sign = false,
show_borders = true,
text_align = "right",
max_width = 60,
format = function(diagnostic)
if diagnostic.source and #diagnostic.source > 0 then
return string.format("[%s] %s: %s", diagnostic.source, diagnostic.code, diagnostic.message)
end
return diagnostic.message
end,
},
-- enabled = false,
}