From 004ca6cf40ba3363fd7121f8370b7a4e038f7ad6 Mon Sep 17 00:00:00 2001 From: Gerry Agbobada Date: Mon, 18 May 2020 19:43:20 +0200 Subject: [PATCH] [review] Address eglot-flymake-backend call readablity --- modules/tools/lsp/flycheck-eglot.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/tools/lsp/flycheck-eglot.el b/modules/tools/lsp/flycheck-eglot.el index b1fcee9ce..d9f174bf1 100644 --- a/modules/tools/lsp/flycheck-eglot.el +++ b/modules/tools/lsp/flycheck-eglot.el @@ -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)))