docs: Add documenation for OpenTofu support (#42448)

Closes -

Release Notes:

- N/A

Signed-off-by: Tom Zaspel <40226087+tzabbi@users.noreply.github.com>
This commit is contained in:
Tom Zaspel 2025-11-19 00:40:09 +01:00 committed by GitHub
parent 16b24e892e
commit d7c340c739
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 21 additions and 0 deletions

View file

@ -126,6 +126,7 @@
- [Markdown](./languages/markdown.md)
- [Nim](./languages/nim.md)
- [OCaml](./languages/ocaml.md)
- [OpenTofu](./languages/opentofu.md)
- [PHP](./languages/php.md)
- [PowerShell](./languages/powershell.md)
- [Prisma](./languages/prisma.md)

View file

@ -0,0 +1,20 @@
# OpenTofu
OpenTofu support is available through the [OpenTofu extension](https://github.com/ashpool37/zed-extension-opentofu).
- Tree-sitter: [MichaHoffmann/tree-sitter-hcl](https://github.com/MichaHoffmann/tree-sitter-hcl)
- Language Server: [opentofu/tofu-ls](https://github.com/opentofu/tofu-ls)
## Configuration
In order to automatically use the OpenTofu extension and language server when editing .tf and .tfvars files,
either uninstall the Terraform extension or add this to your settings.json:
```json
"file_types": {
"OpenTofu": ["tf"],
"OpenTofu Vars": ["tfvars"]
},
```
See the [full list of server settings here](https://github.com/opentofu/tofu-ls/blob/main/docs/SETTINGS.md).