From: João Távora Date: Sun, 13 Jun 2021 22:07:42 +0000 (+0100) Subject: Transpose order of "pylsp" and "pyls" alternatives X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~128 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f07df485c678d8318e896fea9d549d5742d01898;p=emacs.git Transpose order of "pylsp" and "pyls" alternatives When operating remotely, searching for an executable that don't exist takes longer than usual. Better to put the most likely server first in the list to minimize the slowdown. * eglot.el (eglot-server-programs): Transpose python mode alternatives GitHub-reference: per https://github.com/joaotavora/eglot/issues/703 --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 927009a8a9f..83bd1024a00 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -138,7 +138,7 @@ chosen (interactively or automatically)." (defvar eglot-server-programs `((rust-mode . (eglot-rls "rls")) (python-mode - . ,(eglot-alternatives '("pyls" "pylsp"))) + . ,(eglot-alternatives '("pylsp" "pyls"))) ((js-mode typescript-mode) . ("typescript-language-server" "--stdio")) (sh-mode . ("bash-language-server" "start"))