Skip to content

Commit

Permalink
Close #952: Add out-of-box support for Perl LSP server
Browse files Browse the repository at this point in the history
* eglot.el (eglot-server-programs): Support Perl lsp.
* README.md: Update.
* NEWS.md: Update.

Co-authored-by: João Távora <[email protected]>
  • Loading branch information
mmitch and joaotavora authored Jul 26, 2022
1 parent 6cc6fcc commit 000b7fd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 5 additions & 3 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 000b7fd

Please sign in to comment.