From 911167921d49cd5c1c9b2436031d0da3945e787f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 23 Aug 2024 06:20:01 +0000 Subject: docs: update server_configurations.md skip-checks: true --- doc/server_configurations.md | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) (limited to 'doc/server_configurations.md') 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 + } } } ``` -- cgit v1.2.3-70-g09d2