summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/rescriptls.lua
blob: 882a11004a82735f1a2d22d20b958e5c0275ebc1 (plain)
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
28
local util = require 'lspconfig.util'

return {
  default_config = {
    cmd = { 'rescript-language-server', '--stdio' },
    filetypes = { 'rescript' },
    root_dir = util.root_pattern('bsconfig.json', 'rescript.json', '.git'),
    settings = {},
    init_options = {
      extensionConfiguration = {
        askToStartBuild = false,
      },
    },
  },
  docs = {
    description = [[
https://github.com/rescript-lang/rescript-vscode/tree/master/server

ReScript Language Server can be installed via npm:
```sh
npm install -g @rescript/language-server
```

See the init_options supported (see https://github.com/rescript-lang/rescript-vscode/tree/master/server/config.md):
]],
    root_dir = [[root_pattern('bsconfig.json', 'rescript.json', '.git')]],
  },
}