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:
Henrik Lissner 2024-07-01 03:34:23 -04:00
parent 25d0b4065f
commit 5da8304c46
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -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))))