]> git.eshelyaron.com Git - emacs.git/commitdiff
Add Eglot alternatives for PHP language servers
authorUSAMI Kenta <zonuexe+tadsan@zonu.me>
Fri, 11 Nov 2022 13:57:06 +0000 (22:57 +0900)
committerEli Zaretskii <eliz@gnu.org>
Thu, 17 Nov 2022 09:44:56 +0000 (11:44 +0200)
* lisp/progmodes/eglot.el (eglot-server-programs): Add alternatives
for PHP.

lisp/progmodes/eglot.el

index 3d090a652aac8c9d49d5200050eae5bd13370b4d..ac9269e0e5c304cac7449ba396ddc8adda8004e7 100644 (file)
@@ -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")