mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
committed by
Henrik Lissner
parent
8846d15181
commit
117d9127f3
@ -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
|
||||
|
Reference in New Issue
Block a user