[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)
|
:buffer (current-buffer)
|
||||||
:filename (buffer-file-name)))))
|
:filename (buffer-file-name)))))
|
||||||
;; NOTE: Setting up eglot to automatically create flycheck errors for the buffer.
|
;; NOTE: Setting up eglot to automatically create flycheck errors for the buffer.
|
||||||
(eglot-flymake-backend (lambda (flymake-diags &rest _)
|
(eglot-flymake-backend
|
||||||
(funcall callback 'finished (mapcar #'flymake-diag->flycheck-err flymake-diags))))
|
(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)
|
;; NOTE: Forcefully trigger a check in the buffer (function name is confusing)
|
||||||
(flycheck-buffer)))
|
(flycheck-buffer)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue