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:
parent
25d0b4065f
commit
5da8304c46
1 changed files with 1 additions and 1 deletions
|
@ -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))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue