Skip to content

Commit

Permalink
Support ocaml-language-server out of the box (#149)
Browse files Browse the repository at this point in the history
Copyright-paperwork-exempt: yes

* eglot.el (eglot-server-programs): Add ocaml-language-server.

* README.md (Installation and usage): Mention ocaml-language-server
  • Loading branch information
marsam authored and joaotavora committed Nov 7, 2018
1 parent c664f40 commit 11cd074
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ for the language of your choice. Otherwise, it prompts you to enter one:
* Haskell's [IDE engine][haskell-ide-engine]
* Kotlin's [kotlin-language-server][kotlin-language-server]
* Golang's [go-langserver][go-langserver]
* Ocaml's [ocaml-language-server][ocaml-language-server]

I'll add to this list as I test more servers. In the meantime you can
customize `eglot-server-programs`:
Expand Down Expand Up @@ -303,4 +304,4 @@ Under the hood:
[kotlin-language-server]: https://github.com/fwcd/KotlinLanguageServer
[go-langserver]: https://github.com/sourcegraph/go-langserver
[eclipse-jdt]: https://github.com/eclipse/eclipse.jdt.ls

[ocaml-language-server]: https://github.com/freebroccolo/ocaml-language-server
2 changes: 2 additions & 0 deletions eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
rjsx-mode) . ("javascript-typescript-stdio"))
(sh-mode . ("bash-language-server" "start"))
((c++-mode c-mode) . ("ccls"))
((caml-mode tuareg-mode reason-mode)
. ("ocaml-language-server" "--stdio"))
(ruby-mode
. ("solargraph" "socket" "--port"
:autoport))
Expand Down

0 comments on commit 11cd074

Please sign in to comment.