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.

Type Hint

If a JSON Schema is applied to the editing file, more specific candidates are provided.

Schema Type Hint

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

TypeTriggerSelectCompletion
Booleankey.â–ˆtruekey = trueâ–ˆ
Integerkey.â–ˆ42key = ${â–ˆ:42}
Floatkey.â–ˆ3.14key = ${â–ˆ:3.14}
Stringkey.â–ˆ""key = "â–ˆ"
Arraykey.â–ˆ[]key = [â–ˆ]
Tableserver.â–ˆcompletionserver.completionâ–ˆ

Equal Trigger Completion

TypeTriggerSelectCompletion
Booleankey=â–ˆtruekey = trueâ–ˆ
Integerkey=â–ˆ42key = ${â–ˆ:42}
Floatkey=â–ˆ3.14key = ${â–ˆ:3.14}
Stringkey=â–ˆ""key = "â–ˆ"
Arraykey=â–ˆ[]key = [â–ˆ]
Tableserver=â–ˆcompletionserver = { completionâ–ˆ }