Diagnostics > Kurama622/clean-diagnostic
Display diagnostic count using virtual text, and show diagnostic details in a floating window.
Clean-diagnostic
Specific information will be displayed in the floating window when you request to show diagnostic details; at other times, only counts will be displayed.
Installation
{
"kurama622/clean-diagnostic",
event = "LspAttach",
opts = {
border = "rounded",
min_severity = 4,
max_width = 78,
},
keys = {
{
"<leader>sd",
"<cmd>lua require('clean-diagnostic').show()<cr>",
desc = "show the diagnostic of the current line",
},
},
}
Other configuration items
- icons
Prefix icon for diagnostic messages.
icons = { "", "", "", "" }
- show_diagnostic_count
Default value is true
show_diagnostic_count = true
- always_show_message
Automatically show diagnostic messages on the right side(eol_right_align).
Default value is false
always_show_message = false,