blob: 053dfe3bb4db671a992d6123b465d2d5ed64c7b5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'
local server_name = "ocamlls"
local bin_name = "ocaml-language-server"
configs[server_name] = {
default_config = {
cmd = { bin_name, "--stdio" };
filetypes = { "ocaml", "reason" };
root_dir = util.root_pattern("*.opam", "esy.json", "package.json");
};
docs = {
description = [[
https://github.com/ocaml-lsp/ocaml-language-server
`ocaml-language-server` can be installed via `npm`
```sh
npm install -g ocaml-langauge-server
```
]];
default_config = {
root_dir = [[root_pattern("*.opam", "esy.json", "package.json")]];
};
};
};
-- vim:et ts=2 sw=2
|