Files
oak-gpui/docs/src/languages/toml.md
T
Marshall Bowers 3b3c379852 docs: Fix casing of "Tree-sitter" (#25427)
This PR fixes the casing of "Tree-sitter" in the docs.

It is "Tree-sitter", not "Tree Sitter" or "Tree-Sitter".

Release Notes:

- N/A
2025-02-23 15:30:10 +00:00

33 lines
1.0 KiB
Markdown

# TOML
TOML support is available through the [TOML extension](https://github.com/zed-industries/zed/tree/main/extensions/toml).
- Tree-sitter: [tree-sitter/tree-sitter-toml](https://github.com/tree-sitter/tree-sitter-toml)
- Language Server: [tamasfe/taplo](https://github.com/tamasfe/taplo)
## Configuration
You 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.
```toml
# .taplo.toml
include = ["Cargo.toml", "some_directory/**/*.toml"]
# exclude = ["Cargo.toml"]
[formatting]
align_entries = true
reorder_keys = true
```
Alternatively, you can pass taplo configuration options via [Zed LSP Settings](../configuring-zed.md#lsp)
```json
"lsp": {
"taplo": {
"settings": {
"array_auto_collapse": false
}
}
}
```