]> git.eshelyaron.com Git - emacs.git/commitdiff
Add out-of-box support for perl lsp server
authorChristian Garbs <mitch@cgarbs.de>
Tue, 26 Jul 2022 14:05:46 +0000 (16:05 +0200)
committerGitHub <noreply@github.com>
Tue, 26 Jul 2022 14:05:46 +0000 (15:05 +0100)
* eglot.el (eglot-server-programs): Support Perl lsp.
* README.md: Update.
* NEWS.md: Update.

Co-authored-by: João Távora <joaotavora@gmail.com>
GitHub-reference: close https://github.com/joaotavora/eglot/issues/952

lisp/progmodes/eglot.el

index 2e332c470f9454ca616df06c6316162dc2f17528..14e7980d380cf06002fff83d2782c42117e50ec0 100644 (file)
@@ -196,7 +196,8 @@ language-server/bin/php-language-server.php"))
                                 (dockerfile-mode . ("docker-langserver" "--stdio"))
                                 (clojure-mode . ("clojure-lsp"))
                                 (csharp-mode . ("omnisharp" "-lsp"))
-                                (purescript-mode . ("purescript-language-server" "--stdio")))
+                                (purescript-mode . ("purescript-language-server" "--stdio"))
+                                (perl-mode . ("perl" "-MPerl::LanguageServer" "-e" "Perl::LanguageServer::run")))
   "How the command `eglot' guesses the server to start.
 An association list of (MAJOR-MODE . CONTACT) pairs.  MAJOR-MODE
 identifies the buffers that are to be managed by a specific