Skip to content

Diagnostics#

lsp-diagnostic-clean-after-change#

Type: boolean

Default: nil

When non-nil, clean the diagnostics on change.

Note that when that setting is nil, lsp-mode will show stale diagnostics until server publishes the new set of diagnostics


lsp-diagnostics-attributes#

Type: (repeat (list symbol plist))

Default: ((unnecessary :foreground gray) (deprecated :strike-through t))

The Attributes used on the diagnostics. List containing (tag attributes) where tag is the LSP diagnostic tag and attributes is a plist containing face attributes which will be applied on top the flycheck face for that error level.


lsp-diagnostics-disabled-modes#

Type: (repeat symbol)

Default: nil

A list of major models for which lsp-diagnostics-mode should be disabled.


lsp-diagnostics-flycheck-default-level#

Type: (choice (const error) (const warning) (const info))

Default: error

Error level to use when the server does not report back a diagnostic level.


lsp-diagnostics-provider#

Type: (choice (const :tag Pick flycheck if present and fallback to flymake :auto) (const :tag Pick flycheck :flycheck) (const :tag Pick flymake :flymake) (const :tag Use neither flymake nor lsp :none) (const :tag Prefer flymake t) (const :tag Prefer flycheck nil))

Default: :auto

The checker backend provider.



Last update: October 31, 2024