Skip to content

Commit

Permalink
Add terraform lsp support (#1726)
Browse files Browse the repository at this point in the history
Using terraform-ls and enables auto-formate support. Also adds tfvars as an extra filetype.
  • Loading branch information
mdaffin committed Mar 1, 2022
1 parent 49c5bc5 commit a76e948
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
| go |||| `gopls` |
| graphql || | | |
| haskell || | | `haskell-language-server-wrapper` |
| hcl || || |
| hcl || || `terraform-ls` |
| html || | | |
| iex || | | |
| java || | | |
Expand Down
4 changes: 3 additions & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a76e948

Please sign in to comment.