Update some config sites (#695)

This commit is contained in:
Auguste Rame 2022-10-01 13:41:55 -04:00 committed by GitHub
parent b9a291b944
commit ac6353add7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 3 deletions

View File

@ -34,6 +34,7 @@ Zig Language Server, or `zls`, is a language server for Zig. The Zig wiki states
- [Emacs](#emacs) - [Emacs](#emacs)
- [Doom Emacs](#doom-emacs) - [Doom Emacs](#doom-emacs)
- [Spacemacs](#spacemacs) - [Spacemacs](#spacemacs)
- [Helix](#helix)
- [Related Projects](#related-projects) - [Related Projects](#related-projects)
- [License](#license) - [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` | | `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_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. | | `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. | | `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. |`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). |`max_detail_length`|`usize`|`1024 * 1024`| The detail field of completions is truncated to be no longer than this (in bytes).

View File

@ -51,20 +51,30 @@
"default": "true" "default": "true"
}, },
"enable_inlay_hints": { "enable_inlay_hints": {
"description": "Enable inlay hints for builtin functions", "description": "Enables inlay hint support when the client also supports it",
"type": "boolean", "type": "boolean",
"default": "false" "default": "false"
}, },
"inlay_hints_show_builtin": { "inlay_hints_show_builtin": {
"description": "Don't show inlay hints for single argument calls", "description": "Enable inlay hints for builtin functions",
"type": "boolean", "type": "boolean",
"default": "true" "default": "true"
}, },
"inlay_hints_exclude_single_argument": { "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", "type": "boolean",
"default": "true" "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": { "operator_completions": {
"description": "Enables `*` and `?` operators in completion lists", "description": "Enables `*` and `?` operators in completion lists",
"type": "boolean", "type": "boolean",