Skip to content
Discussion options

You must be logged in to vote

language-id belongs in the language-server map:

[[language]]
name = "hcl"
language-server = { command = 'terraform-ls', args = [ "serve" ], language-id = "terraform" }

[[language]]
name = "tfvars"
language-server = { command = 'terraform-ls', args = [ "serve" ], language-id = "terraform-vars" }

see https://docs.helix-editor.com/languages.html#language-server-configuration

You don't need to copy the whole [[language]] and [[grammar]] blocks: the changes you add in ~/.config/helix/languages.toml are merged into the main language config from the repo.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@waldauf
Comment options

Answer selected by waldauf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
2 participants
Converted from issue

This discussion was converted from issue #7886 on August 09, 2023 14:56.