From b57a3681796efa65e688731bab3c1bfb0043256b Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 2 Apr 2024 15:04:30 -0600 Subject: [PATCH] Use all available flymake backends in addition to eglot --- emacs/.emacs.d/config/init-ide.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs/.emacs.d/config/init-ide.el b/emacs/.emacs.d/config/init-ide.el index 941c768..77cf44d 100644 --- a/emacs/.emacs.d/config/init-ide.el +++ b/emacs/.emacs.d/config/init-ide.el @@ -59,13 +59,16 @@ :hook (prog-mode . flymake-mode)) +;; LSP client (use-package eglot :commands (eglot) :config + (add-to-list 'eglot-stay-out-of 'flymake) (defun my-eglot-managed-hook () (if (eglot-managed-p) (setq-local corfu-preview-current nil) - (kill-local-variable 'corfu-preview-current))) + (kill-local-variable 'corfu-preview-current)) + (add-hook 'flymake-diagnostic-functions 'eglot-flymake-backend nil t)) (add-hook 'eglot-managed-mode-hook #'my-eglot-managed-hook) (add-to-list 'eglot-server-programs '(js-web-mode . ("typescript-language-server" "--stdio")))