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