Add terraform lsp support (#1726)

Using terraform-ls and enables auto-formate support. Also adds tfvars as an extra filetype.
This commit is contained in:
Michael Daffin 2022-03-01 11:59:03 +00:00 committed by GitHub
parent 49c5bc5934
commit a76e94848a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -21,7 +21,7 @@
| go | ✓ | ✓ | ✓ | `gopls` |
| graphql | ✓ | | | |
| haskell | ✓ | | | `haskell-language-server-wrapper` |
| hcl | ✓ | | ✓ | |
| hcl | ✓ | | ✓ | `terraform-ls` |
| html | ✓ | | | |
| iex | ✓ | | | |
| java | ✓ | | | |

View file

@ -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