Use all available flymake backends in addition to eglot

This commit is contained in:
Jeremy Dormitzer 2024-04-02 15:04:30 -06:00
parent cf2bae52ef
commit b57a368179

View File

@ -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")))