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