diff options
| author | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2024-08-23 06:20:01 +0000 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2024-08-23 06:20:01 +0000 |
| commit | 911167921d49cd5c1c9b2436031d0da3945e787f (patch) | |
| tree | a751591ce4dec0cb2c8ca56c61974ea00494298d /doc/server_configurations.md | |
| parent | fix(rescripls): enable typechecking, improve doc (#3281) (diff) | |
| download | nvim-lspconfig-911167921d49cd5c1c9b2436031d0da3945e787f.tar nvim-lspconfig-911167921d49cd5c1c9b2436031d0da3945e787f.tar.gz nvim-lspconfig-911167921d49cd5c1c9b2436031d0da3945e787f.tar.bz2 nvim-lspconfig-911167921d49cd5c1c9b2436031d0da3945e787f.tar.lz nvim-lspconfig-911167921d49cd5c1c9b2436031d0da3945e787f.tar.xz nvim-lspconfig-911167921d49cd5c1c9b2436031d0da3945e787f.tar.zst nvim-lspconfig-911167921d49cd5c1c9b2436031d0da3945e787f.zip | |
docs: update server_configurations.md
skip-checks: true
Diffstat (limited to 'doc/server_configurations.md')
| -rw-r--r-- | doc/server_configurations.md | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md index 13f69d7c..0490cd1d 100644 --- a/doc/server_configurations.md +++ b/doc/server_configurations.md @@ -9755,7 +9755,21 @@ ReScript Language Server can be installed via npm: npm install -g @rescript/language-server ``` -See the init_options supported (see https://github.com/rescript-lang/rescript-vscode/tree/master/server/config.md): +See [package.json](https://github.com/rescript-lang/rescript-vscode/blob/master/package.json#L139) +for init_options supported. + +For example, in order to disable the `inlayHints` option: +```lua +require'lspconfig'.pylsp.setup{ + settings = { + rescript = { + settings = { + inlayHints = { enable = false }, + }, + }, + } +} +``` @@ -9778,7 +9792,21 @@ require'lspconfig'.rescriptls.setup{} ```lua { extensionConfiguration = { - askToStartBuild = false + allowBuiltInFormatter = true, + askToStartBuild = false, + cache = { + projectConfig = { + enabled = true + } + }, + codeLens = true, + incrementalTypechecking = { + acrossFiles = true, + enabled = true + }, + inlayHints = { + enable = true + } } } ``` |
