mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-08-17 12:00:22 +03:00
fix(lsp): divide hcl into seperate languages (#2244)
This commit is contained in:
parent
6047506ec5
commit
5ca8dfe57c
@ -73,6 +73,7 @@
|
||||
| svelte | ✓ | | ✓ | `svelteserver` |
|
||||
| swift | ✓ | | | `sourcekit-lsp` |
|
||||
| tablegen | ✓ | ✓ | ✓ | |
|
||||
| tfvars | | | | `terraform-ls` |
|
||||
| toml | ✓ | | | |
|
||||
| tsq | ✓ | | | |
|
||||
| tsx | ✓ | | | `typescript-language-server` |
|
||||
|
@ -1039,17 +1039,28 @@ source = { git = "https://github.com/fwcd/tree-sitter-kotlin", rev = "a4f71eb9b8
|
||||
name = "hcl"
|
||||
scope = "source.hcl"
|
||||
injection-regex = "(hcl|tf|nomad)"
|
||||
file-types = ["hcl", "tf", "tfvars", "nomad"]
|
||||
file-types = ["hcl", "tf", "nomad"]
|
||||
roots = []
|
||||
comment-token = "#"
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
language-server = { command = "terraform-ls", args = ["serve"] }
|
||||
language-server = { command = "terraform-ls", args = ["serve"], language-id = "terraform" }
|
||||
auto-format = true
|
||||
|
||||
[[grammar]]
|
||||
name = "hcl"
|
||||
source = { git = "https://github.com/MichaHoffmann/tree-sitter-hcl", rev = "3cb7fc28247efbcb2973b97e71c78838ad98a583" }
|
||||
|
||||
[[language]]
|
||||
name = "tfvars"
|
||||
scope = "source.tfvars"
|
||||
file-types = ["tfvars"]
|
||||
roots = []
|
||||
comment-token = "#"
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
language-server = { command = "terraform-ls", args = ["serve"], language-id = "terraform-vars" }
|
||||
auto-format = true
|
||||
grammar = "hcl"
|
||||
|
||||
[[language]]
|
||||
name = "org"
|
||||
scope = "source.org"
|
||||
|
Loading…
Reference in New Issue
Block a user