]> git.eshelyaron.com Git - emacs.git/commitdiff
Add pyright language server support for python-mode
authorIllia Danko <illia@aigent.com>
Sat, 18 Sep 2021 12:13:39 +0000 (15:13 +0300)
committerStefan Kangas <stefankangas@gmail.com>
Sat, 8 Jan 2022 17:53:44 +0000 (18:53 +0100)
* eglot.el (eglot-server-programs): Add pyright support for
python-mode.
* README.md: Document the above change.

Copyright-paperwork-exempt: Yes

lisp/progmodes/eglot.el

index abcd0781e16e36f8076f44485066ae51dac5fe5c..43b27af90f0c1e3ece84f54154ed0763582e05d0 100644 (file)
@@ -141,7 +141,8 @@ chosen (interactively or automatically)."
 
 (defvar eglot-server-programs `((rust-mode . (eglot-rls "rls"))
                                 (python-mode
-                                 . ,(eglot-alternatives '("pylsp" "pyls")))
+                                 . ,(eglot-alternatives
+                                     '("pylsp" "pyls" ("pyright-langserver" "--stdio"))))
                                 ((js-mode typescript-mode)
                                  . ("typescript-language-server" "--stdio"))
                                 (sh-mode . ("bash-language-server" "start"))