From ac6353add7b1dc5fdee25333b02d8c52e589502a Mon Sep 17 00:00:00 2001 From: Auguste Rame <19855629+SuperAuguste@users.noreply.github.com> Date: Sat, 1 Oct 2022 13:41:55 -0400 Subject: [PATCH] Update some config sites (#695) --- README.md | 5 +++++ schema.json | 16 +++++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5983a43..d2a557c 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ Zig Language Server, or `zls`, is a language server for Zig. The Zig wiki states - [Emacs](#emacs) - [Doom Emacs](#doom-emacs) - [Spacemacs](#spacemacs) + - [Helix](#helix) - [Related Projects](#related-projects) - [License](#license) @@ -114,6 +115,10 @@ The following options are currently available. | `global_cache_path` | `?[]const u8` | `null` | Path to a directroy that will be used as zig's cache. `null` is equivalent to `${KnownFloders.Cache}/zls` | | `enable_semantic_tokens` | `bool` | `true` | Enables semantic token support when the client also supports it. | | `enable_inlay_hints` | `bool` | `false` | Enables inlay hint support when the client also supports it. | +| `inlay_hints_show_builtin` | `bool` | `true` | Enable inlay hints for builtin functions | +| `inlay_hints_exclude_single_argument` | `bool` | `true`| Don't show inlay hints for single argument calls | +| `inlay_hints_hide_redundant_param_names` | `bool` | `false`| Hides inlay hints when parameter name matches the identifier (e.g. foo: foo) | +| `inlay_hints_hide_redundant_param_names_last_token` | `bool` | `false`| Hides inlay hints when parameter name matches the last token of a parameter node (e.g. foo: bar.foo, foo: &foo) | | `operator_completions` | `bool` | `true` | Enables `*` and `?` operators in completion lists. | |`include_at_in_builtins`|`bool`|`false`| Whether the @ sign should be part of the completion of builtins. |`max_detail_length`|`usize`|`1024 * 1024`| The detail field of completions is truncated to be no longer than this (in bytes). diff --git a/schema.json b/schema.json index b7a37cc..2673418 100644 --- a/schema.json +++ b/schema.json @@ -51,20 +51,30 @@ "default": "true" }, "enable_inlay_hints": { - "description": "Enable inlay hints for builtin functions", + "description": "Enables inlay hint support when the client also supports it", "type": "boolean", "default": "false" }, "inlay_hints_show_builtin": { - "description": "Don't show inlay hints for single argument calls", + "description": "Enable inlay hints for builtin functions", "type": "boolean", "default": "true" }, "inlay_hints_exclude_single_argument": { - "description": "Enables inlay hint support when the client also supports it", + "description": "Don't show inlay hints for single argument calls", "type": "boolean", "default": "true" }, + "inlay_hints_hide_redundant_param_names": { + "description": "Hides inlay hints when parameter name matches the identifier (e.g. foo: foo)", + "type": "boolean", + "default": "false" + }, + "inlay_hints_hide_redundant_param_names_last_token": { + "description": "Hides inlay hints when parameter name matches the last token of a parameter node (e.g. foo: bar.foo, foo: &foo)", + "type": "boolean", + "default": "false" + }, "operator_completions": { "description": "Enables `*` and `?` operators in completion lists", "type": "boolean",