mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 17:36:19 +04:00
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:
parent
49c5bc5934
commit
a76e94848a
@ -21,7 +21,7 @@
|
|||||||
| go | ✓ | ✓ | ✓ | `gopls` |
|
| go | ✓ | ✓ | ✓ | `gopls` |
|
||||||
| graphql | ✓ | | | |
|
| graphql | ✓ | | | |
|
||||||
| haskell | ✓ | | | `haskell-language-server-wrapper` |
|
| haskell | ✓ | | | `haskell-language-server-wrapper` |
|
||||||
| hcl | ✓ | | ✓ | |
|
| hcl | ✓ | | ✓ | `terraform-ls` |
|
||||||
| html | ✓ | | | |
|
| html | ✓ | | | |
|
||||||
| iex | ✓ | | | |
|
| iex | ✓ | | | |
|
||||||
| java | ✓ | | | |
|
| java | ✓ | | | |
|
||||||
|
@ -762,7 +762,9 @@ language-server = { command = "kotlin-language-server" }
|
|||||||
name = "hcl"
|
name = "hcl"
|
||||||
scope = "source.hcl"
|
scope = "source.hcl"
|
||||||
injection-regex = "(hcl|tf)"
|
injection-regex = "(hcl|tf)"
|
||||||
file-types = ["hcl", "tf"]
|
file-types = ["hcl", "tf", "tfvars"]
|
||||||
roots = []
|
roots = []
|
||||||
comment-token = "#"
|
comment-token = "#"
|
||||||
indent = { tab-width = 2, unit = " " }
|
indent = { tab-width = 2, unit = " " }
|
||||||
|
language-server = { command = "terraform-ls", args = ["serve"] }
|
||||||
|
auto-format = true
|
||||||
|
Loading…
Reference in New Issue
Block a user