Skip to content

Commit

Permalink
feat(rescriptls): add init_options
Browse files Browse the repository at this point in the history
  • Loading branch information
aspeddro committed Nov 14, 2023
1 parent 90a28fd commit 63c48dc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lua/lspconfig/server_configurations/rescriptls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,23 @@ return {
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')]],
},
}

0 comments on commit 63c48dc

Please sign in to comment.