toml.md

 1# TOML
 2
 3TOML support is available through the [TOML extension](https://github.com/zed-industries/zed/tree/main/extensions/toml).
 4
 5- Tree-sitter: [tree-sitter/tree-sitter-toml](https://github.com/tree-sitter/tree-sitter-toml)
 6- Language Server: [tamasfe/taplo](https://github.com/tamasfe/taplo)
 7
 8## Configuration
 9
10You can control the behavior of the Taplo TOML language server by adding a `.taplo.toml` file to the root of your project. See the [Taplo Configuration File](https://taplo.tamasfe.dev/configuration/file.html#configuration-file) and [Taplo Formatter Options](https://taplo.tamasfe.dev/configuration/formatter-options.html) documentation for more.
11
12```toml
13# .taplo.toml
14include = ["Cargo.toml", "some_directory/**/*.toml"]
15# exclude = ["Cargo.toml"]
16
17[formatting]
18align_entries = true
19reorder_keys = true
20```
21
22Alternatively, you can pass taplo configuration options via [Zed LSP Settings](../configuring-zed.md#lsp)
23
24```json
25  "lsp": {
26    "taplo": {
27      "settings": {
28        "array_auto_collapse": false
29      }
30    }
31  }
32```