Project Awesome project awesome

Diagnostics > Kurama622/clean-diagnostic

Display diagnostic count using virtual text, and show diagnostic details in a floating window.

Package 7 stars GitHub

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.

clean-diagnostic

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,
Back to Neovim