+4








eb3c4b0e46
Co-authored-by: Raunak Raj <nkray21111983@gmail.com> Co-authored-by: Thorsten Ball <mrnugget@gmail.com> Co-authored-by: Bennet <bennet@zed.dev> Co-authored-by: Marshall Bowers <elliott.codes@gmail.com> Co-authored-by: Joseph T Lyons <JosephTLyons@gmail.com> Co-authored-by: Mikayla <mikayla@zed.dev> Co-authored-by: Jason <jason@zed.dev> Co-authored-by: Antonio Scandurra <me@as-cii.com> Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com> Co-authored-by: Marshall <marshall@zed.dev> Co-authored-by: Nathan Sobo <nathan@zed.dev> Co-authored-by: Jason Mancuso <7891333+jvmncs@users.noreply.github.com> Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
21 lines
821 B
Markdown
21 lines
821 B
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
|
|
```
|