Function: eglot--flymake-diag-type
eglot--flymake-diag-type is a byte-compiled function defined in
eglot.el.gz.
Signature
(eglot--flymake-diag-type SEVERITY)
Documentation
Convert LSP diagnostic SEVERITY to Eglot/Flymake diagnostic type.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(defun eglot--flymake-diag-type (severity)
"Convert LSP diagnostic SEVERITY to Eglot/Flymake diagnostic type."
(cond ((null severity) 'eglot-error)
((<= severity 1) 'eglot-error)
((= severity 2) 'eglot-warning)
(t 'eglot-note)))