branch: externals/eglot commit 000b7fdce93ed29c505a7fa75baaf87094fd690a Author: Christian Garbs <mi...@cgarbs.de> Commit: GitHub <nore...@github.com>
Close #952: Add out-of-box support for Perl LSP server * eglot.el (eglot-server-programs): Support Perl lsp. * README.md: Update. * NEWS.md: Update. Co-authored-by: João Távora <joaotav...@gmail.com> --- NEWS.md | 8 +++++--- README.md | 2 ++ eglot.el | 3 ++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/NEWS.md b/NEWS.md index 47450927ba..40b9edb172 100644 --- a/NEWS.md +++ b/NEWS.md @@ -52,8 +52,9 @@ available. The special support code for RLS has been removed. ##### New servers have been added to `eglot-server-programs` - clojure-lsp ([#813][github#813]) - racket-langserver ([#694][github#694]) -- futhark lsp ([#922](github#922)) -- purescript-language-server ([#905](github#905)) +- futhark lsp ([#922][github#922]) +- purescript-language-server ([#905][github#905]) +- Perl::LanguageServer ([#952][github#952]) # 1.8 (12/1/2022) @@ -386,4 +387,5 @@ and now said bunch of references--> [github#901]: https://github.com/joaotavora/eglot/issues/901 [github#905]: https://github.com/joaotavora/eglot/issues/905 [github#922]: https://github.com/joaotavora/eglot/issues/922 -[github#967]: https://github.com/joaotavora/eglot/issues/967 +[github#952]: https://github.com/joaotavora/eglot/issues/952 +[github#967]: https://github.com/joaotavora/eglot/issues/967 \ No newline at end of file diff --git a/README.md b/README.md index 3627640321..9d340f19bc 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,7 @@ find-library` can help you tell if that happened. * Mint's [mint-ls][mint-ls] * Nix's [rnix-lsp][rnix-lsp] * Ocaml's [ocaml-lsp][ocaml-lsp] +* Perl's [Perl::LanguageServer][perl-language-server] * PHP's [php-language-server][php-language-server] * PureScript's [purescript-language-server][purescript-language-server] * Python's [pylsp][pylsp], [pyls][pyls] or [pyright][pyright] @@ -584,6 +585,7 @@ for the request form, and we'll send it to you. [mint-ls]: https://www.mint-lang.com/ [rnix-lsp]: https://github.com/nix-community/rnix-lsp [ocaml-lsp]: https://github.com/ocaml/ocaml-lsp/ +[perl-language-server]: https://github.com/richterger/Perl-LanguageServer [php-language-server]: https://github.com/felixfbecker/php-language-server [purescript-language-server]: https://github.com/nwolverson/purescript-language-server [pyls]: https://github.com/palantir/python-language-server diff --git a/eglot.el b/eglot.el index 2e332c470f..14e7980d38 100644 --- a/eglot.el +++ b/eglot.el @@ -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