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 = true
Dot 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█ } |