Use all available flymake backends in addition to eglot
This commit is contained in:
parent
cf2bae52ef
commit
b57a368179
@ -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")))
|
||||
|
Loading…
Reference in New Issue
Block a user