toml.md

 1---
 2title: TOML
 3description: "Configure TOML language support in Zed, including language servers, formatting, and debugging."
 4---
 5
 6# TOML
 7
 8TOML support is available through the [TOML extension](https://zed.dev/extensions/toml).
 9
10- Tree-sitter: [tree-sitter/tree-sitter-toml](https://github.com/tree-sitter/tree-sitter-toml)
11
12## Language server
13
14A TOML language server is available in the [Tombi extension](https://zed.dev/extensions/tombi).
15
16<div class="warning">
17
18Tombi replies to language server requests for definitions by opening a scratch JSON buffer with the schema definition for some known formats (`Cargo.toml`, `pyproject.toml`, ...). Since [Edit Predictions](/docs/ai/edit-prediction) rely on looking up definitions, this leads to tabs opening when you edit the TOML file.
19
20You can fix it by [disabling definition requests](https://tombi-toml.github.io/tombi/docs/configuration/#lsp-goto-definition-enabled) in your Tombi configuration:
21
22```toml
23[lsp]
24goto-type-definition.enabled = false
25```
26
27Alternatively, you can disable edit predictions in TOML buffers:
28
29```json
30{
31  "languages": {
32    "TOML": {
33      "show_edit_predictions": false // https://github.com/tombi-toml/tombi/issues/1556
34    }
35  }
36}
37```
38
39</div>