Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

docs: Add documenation for OpenTofu support (#42448)

Tom Zaspeld7c340c739ec
diff --git a/docs/src/SUMMARY.md b/docs/src/SUMMARY.md
index c57802afa61..dc42cfbdbb8 100644
--- a/docs/src/SUMMARY.md
+++ b/docs/src/SUMMARY.md
@@ -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)
diff --git a/docs/src/languages/opentofu.md b/docs/src/languages/opentofu.md
new file mode 100644
index 00000000000..dfe8fa7b818
--- /dev/null
+++ b/docs/src/languages/opentofu.md
@@ -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).