Fix corfu preview with eglot mode
This commit is contained in:
parent
c716174511
commit
7e0b08ad16
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user