mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
fix(python): wrong-number-of-args error for eglot users
eglot-server-initialized-hook passes one argument to its hooks.
Amend: d14ddbf694
Ref: #7823
This commit is contained in:
@ -106,7 +106,7 @@
|
||||
(anaconda-mode +1))))
|
||||
|
||||
(add-hook! 'eglot-server-initialized-hook
|
||||
(defun +python-disable-anaconda-mode-h ()
|
||||
(defun +python-disable-anaconda-mode-h (&rest _)
|
||||
"Ensure `anaconda-mode' doesn't interfere with `eglot'."
|
||||
(when (bound-and-true-p anaconda-mode)
|
||||
(anaconda-mode -1))))
|
||||
|
Reference in New Issue
Block a user