From 954a5e79dc8670e93ee72b3f835ec82e847dc23d Mon Sep 17 00:00:00 2001 From: USAMI Kenta Date: Fri, 11 Nov 2022 22:57:06 +0900 Subject: [PATCH] Add Eglot alternatives for PHP language servers * lisp/progmodes/eglot.el (eglot-server-programs): Add alternatives for PHP. --- lisp/progmodes/eglot.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 3d090a652aa..ac9269e0e5c 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -192,8 +192,10 @@ chosen (interactively or automatically)." . ("typescript-language-server" "--stdio")) (sh-mode . ("bash-language-server" "start")) ((php-mode phps-mode) - . ("php" "vendor/felixfbecker/\ -language-server/bin/php-language-server.php")) + . ,(eglot-alternatives + '(("phpactor" "language-server") + ("intelephense" "--stdio") + ("php" "vendor/felixfbecker/language-server/bin/php-language-server.php")))) ((c++-mode c-mode) . ,(eglot-alternatives '("clangd" "ccls"))) (((caml-mode :language-id "ocaml") -- 2.39.2