aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Daffin2022-03-01 11:59:03 +0000
committerGitHub2022-03-01 11:59:03 +0000
commita76e94848a69e24a94501b47efac2ca94aaf1257 (patch)
treea18fdc5f8977f69f3c3565413470ea69bc534327
parent49c5bc59340c05a7fb79e29bad5452fb8d3d9b4f (diff)
Add terraform lsp support (#1726)
Using terraform-ls and enables auto-formate support. Also adds tfvars as an extra filetype.
-rw-r--r--book/src/generated/lang-support.md2
-rw-r--r--languages.toml4
2 files changed, 4 insertions, 2 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md
index 40ca50f6..62a2734b 100644
--- a/book/src/generated/lang-support.md
+++ b/book/src/generated/lang-support.md
@@ -21,7 +21,7 @@
| go | ✓ | ✓ | ✓ | `gopls` |
| graphql | ✓ | | | |
| haskell | ✓ | | | `haskell-language-server-wrapper` |
-| hcl | ✓ | | ✓ | |
+| hcl | ✓ | | ✓ | `terraform-ls` |
| html | ✓ | | | |
| iex | ✓ | | | |
| java | ✓ | | | |
diff --git a/languages.toml b/languages.toml
index 2ce4cf12..8d210b63 100644
--- a/languages.toml
+++ b/languages.toml
@@ -762,7 +762,9 @@ language-server = { command = "kotlin-language-server" }
name = "hcl"
scope = "source.hcl"
injection-regex = "(hcl|tf)"
-file-types = ["hcl", "tf"]
+file-types = ["hcl", "tf", "tfvars"]
roots = []
comment-token = "#"
indent = { tab-width = 2, unit = " " }
+language-server = { command = "terraform-ls", args = ["serve"] }
+auto-format = true