From 176a6df74e0bbf3e360f2af72c02a70211fd5431 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felici=C3=A1n=20N=C3=A9meth?= Date: Mon, 1 Feb 2021 17:02:58 +0100 Subject: [PATCH] Support phps-mode MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit phps-mode is available from ELPA, php-mode isn't. * eglot.el (eglot-server-programs): Recognize phps-mode as a PHP mode. Co-authored-by: João Távora GitHub-reference: fix https://github.com/joaotavora/eglot/issues/418 --- lisp/progmodes/eglot.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index e1387235ff5..44648ae41b4 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -97,11 +97,10 @@ (defvar eglot-server-programs '((rust-mode . (eglot-rls "rls")) (python-mode . ("pyls")) - ((js-mode - typescript-mode) + ((js-mode typescript-mode) . ("typescript-language-server" "--stdio")) (sh-mode . ("bash-language-server" "start")) - (php-mode + ((php-mode phps-mode) . ("php" "vendor/felixfbecker/\ language-server/bin/php-language-server.php")) ((c++-mode c-mode) . ("ccls")) -- 2.39.2