Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
995 changes: 880 additions & 115 deletions docs/en/features/inlay-hints.md

Large diffs are not rendered by default.

60 changes: 60 additions & 0 deletions docs/en/guide/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,66 @@ Interval for re-checking the compilation database file.

Interval for sweeping workspace files for on-disk changes.

## Inlay Hints

The `[inlay_hints]` section controls which inlay hint categories the server produces. Configuration changes take effect after a server restart; a client-side refresh then requests hints with the updated values. No recompile is involved.

### `inlay_hints.enabled`

| Type | Default |
| ------ | ------- |
| `bool` | `true` |

Master switch: `false` disables all inlay hints.

### `inlay_hints.parameters`

| Type | Default |
| ------ | ------- |
| `bool` | `true` |

Parameter name hints at call sites, e.g. `draw(width: 800, height: 600)`, including `&` markers for arguments passed by mutable reference.

### `inlay_hints.deduced_types`

| Type | Default |
| ------ | ------- |
| `bool` | `true` |

Deduced type hints for `auto` variables, structured bindings, and deduced return types.

### `inlay_hints.designators`

| Type | Default |
| ------ | ------- |
| `bool` | `true` |

Field designator hints in aggregate initialization, e.g. `Point{.x=1, .y=2}` for `Point{1, 2}`.

### `inlay_hints.block_end`

| Type | Default |
| ------ | ------- |
| `bool` | `false` |

`// name` hints after the closing brace of long blocks (functions, types, namespaces, control flow).

### `inlay_hints.default_arguments`

| Type | Default |
| ------ | ------- |
| `bool` | `false` |

Show the default arguments a call omitted, abbreviated when long.

### `inlay_hints.type_name_limit`

| Type | Default |
| -------- | ------- |
| `uint32` | `32` |

Maximum length for printed type names; longer types fall back to a sugared spelling or are dropped. `0` means no limit.
Comment thread
16bit-ykiko marked this conversation as resolved.
Resolved

## Rules

`[[rules]]` is an array of rule objects. Rules are matched in declaration order — later rules override earlier ones.
Expand Down
Loading
Loading