fix(python): stop anaconda-eldoc-mode when lsp server launches

this needed a fix in anaconda-mode to not also stop eldoc-mode in
general.

ref: pythonic-emacs/anaconda-mode#440
This commit is contained in:
Jonas Jelten
2025-02-27 16:51:51 +01:00
committed by Henrik Lissner
parent 8846d15181
commit 117d9127f3

View File

@ -107,9 +107,11 @@
(add-hook! 'eglot-server-initialized-hook
(defun +python-disable-anaconda-mode-h (&rest _)
"Ensure `anaconda-mode' doesn't interfere with `eglot'."
"When `eglot' started, disable `anaconda-mode' so they don't interfere."
(when (bound-and-true-p anaconda-mode)
(anaconda-eldoc-mode -1)
(anaconda-mode -1))))
:config
(set-company-backend! 'anaconda-mode '(company-anaconda))
(set-lookup-handlers! 'anaconda-mode