terraform.md

 1# Terraform
 2
 3Terraform support is available through the [Terraform extension](https://github.com/zed-extensions/terraform).
 4
 5- Tree-sitter: [MichaHoffmann/tree-sitter-hcl](https://github.com/MichaHoffmann/tree-sitter-hcl)
 6- Language Server: [hashicorp/terraform-ls](https://github.com/hashicorp/terraform-ls)
 7
 8## Configuration
 9
10<!--
11TBD: Add example using `rootModulePaths` to match upstream example https://github.com/hashicorp/terraform-ls/blob/main/docs/SETTINGS.md#vs-code
12-->
13
14The Terraform language server can be configured in your `settings.json`, e.g.:
15
16```json [settings]
17{
18  "lsp": {
19    "terraform-ls": {
20      "initialization_options": {
21        "experimentalFeatures": {
22          "prefillRequiredFields": true
23        }
24      }
25    }
26  }
27}
28```
29
30See the [full list of server settings here](https://github.com/hashicorp/terraform-ls/blob/main/docs/SETTINGS.md).