mirror of
https://github.com/doomemacs/doomemacs.git
synced 2026-04-22 04:41:33 -07:00
revert: fix(python): eglot not recognizing (based)?pyright
95a3751was misinformed and incorrect. This reverts the change. Revert:95a375182bRevert: #8436 Close: #8563
This commit is contained in:
parent
7b75983b30
commit
6aed2e7160
1 changed files with 1 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue