diff --git a/emacs/.emacs.d/config/init-ide.el b/emacs/.emacs.d/config/init-ide.el index 54a64b8..a94d099 100644 --- a/emacs/.emacs.d/config/init-ide.el +++ b/emacs/.emacs.d/config/init-ide.el @@ -46,6 +46,11 @@ (use-package eglot :commands (eglot) :config + (defun my-eglot-managed-hook () + (if (eglot-managed-p) + (setq-local corfu-preview-current nil) + (kill-local-variable 'corfu-preview-current))) + (add-hook 'eglot-managed-mode-hook #'my-eglot-managed-hook) (add-to-list 'eglot-server-programs '(js-web-mode . ("typescript-language-server" "--stdio"))) (add-to-list 'eglot-server-programs