From f07df485c678d8318e896fea9d549d5742d01898 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Sun, 13 Jun 2021 23:07:42 +0100 Subject: [PATCH] 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 --- lisp/progmodes/eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")) -- 2.39.2