From: Illia Danko Date: Sat, 18 Sep 2021 12:13:39 +0000 (+0300) Subject: Add pyright language server support for python-mode X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~112 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bbdfbf0456bcf2fd55b78ea18e8785e64a5a8793;p=emacs.git Add pyright language server support for python-mode * eglot.el (eglot-server-programs): Add pyright support for python-mode. * README.md: Document the above change. Copyright-paperwork-exempt: Yes --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index abcd0781e16..43b27af90f0 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -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"))