revert: fix(python): eglot not recognizing (based)?pyright

95a3751 was misinformed and incorrect. This reverts the change.

Revert: 95a375182b
Revert: #8436
Close: #8563
This commit is contained in:
Henrik Lissner 2025-11-04 19:50:32 -05:00
parent 7b75983b30
commit 6aed2e7160
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -33,19 +33,7 @@
(when (modulep! +lsp)
(add-hook 'python-mode-local-vars-hook #'lsp! 'append)
(add-hook 'python-ts-mode-local-vars-hook #'lsp! 'append)
;; REVIEW: PR this upstream, which assumes the wrong names for the
;; (based)pyright executables.
(set-eglot-client! '(python-mode python-ts-mode)
"pylsp" "pyls"
'("basedpyright-langserver" "--stdio")
'("pyright" "--stdio")
'("pyright-langserver" "--stdio")
'("pyrefly" "lsp")
"jedi-language-server"
'("ruff" "server")
"ruff-lsp"))
(add-hook 'python-ts-mode-local-vars-hook #'lsp! 'append))
(set-repl-handler! '(python-mode python-ts-mode) #'+python/open-repl
:persist t