[review] Address eglot-flymake-backend call readablity
This commit is contained in:
parent
98b3153df2
commit
004ca6cf40
1 changed files with 5 additions and 2 deletions
|
@ -25,8 +25,11 @@ CALLBACK is the function that we need to call when we are done, on all the error
|
|||
:buffer (current-buffer)
|
||||
:filename (buffer-file-name)))))
|
||||
;; NOTE: Setting up eglot to automatically create flycheck errors for the buffer.
|
||||
(eglot-flymake-backend (lambda (flymake-diags &rest _)
|
||||
(funcall callback 'finished (mapcar #'flymake-diag->flycheck-err flymake-diags))))
|
||||
(eglot-flymake-backend
|
||||
(lambda (flymake-diags &rest _)
|
||||
(funcall callback
|
||||
'finished
|
||||
(mapcar #'flymake-diag->flycheck-err flymake-diags))))
|
||||
;; NOTE: Forcefully trigger a check in the buffer (function name is confusing)
|
||||
(flycheck-buffer)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue