nvim/pack/acp/start/nvim-lspconfig/lua/lspconfig/server_configurations/rescriptls.lua

29 lines
763 B
Lua
Raw Normal View History

2024-04-06 13:39:53 +00:00
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')]],
},
}