Completion
Tombi provides code completion for TOML.
The most simple form is to provide the type that can be input as TOML grammar.
All of them have the description Type Hint.
If a JSON Schema is applied to the editing file, more specific candidates are provided.
Magic Trigger
Tombi provides a magic trigger to complete rhythmically.
TOML uses doted keys or inline tables for nested structures,
but Tombi controls the form of completion by selecting triggers with . and =.
💡Tip
If you prefer inline tables, select the trigger =, and completion will prioritize inline tables
inline = { table = true }If you prefer dotted keys, select the trigger .
dotted.keys = trueDot Trigger Completion
| Type | Trigger | Select | Completion |
|---|---|---|---|
| Boolean | key.â–ˆ | true | key = trueâ–ˆ |
| Integer | key.â–ˆ | 42 | key = ${â–ˆ:42} |
| Float | key.â–ˆ | 3.14 | key = ${â–ˆ:3.14} |
| String | key.â–ˆ | "" | key = "â–ˆ" |
| Array | key.â–ˆ | [] | key = [â–ˆ] |
| Table | server.â–ˆ | completion | server.completionâ–ˆ |
Equal Trigger Completion
| Type | Trigger | Select | Completion |
|---|---|---|---|
| Boolean | key=â–ˆ | true | key = trueâ–ˆ |
| Integer | key=â–ˆ | 42 | key = ${â–ˆ:42} |
| Float | key=â–ˆ | 3.14 | key = ${â–ˆ:3.14} |
| String | key=â–ˆ | "" | key = "â–ˆ" |
| Array | key=â–ˆ | [] | key = [â–ˆ] |
| Table | server=â–ˆ | completion | server = { completionâ–ˆ } |