Replies: 1 comment 1 reply
-
|
Looks like I found a workaround. I'm modifying the [[language]]
name = "hcl"
file-types = ["hcl", "nomad"]
language-servers = []
[[language]]
name = "tfvars"
file-types = ["tf", "tfvars"]The question still stands, is there a cleaner way to "inherit" (lacking a better word) a language definition overriding some of it's definitions? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an annoying issue with LSP enabled for
*.hclfiles. By defaulthclfiles are set to useterraform-lsbut it usually is not right.While it's true that a
.tfhashclsyntax it's lsp setup is most likely wrong creating all sort of useless error reports.Example:

This is an
hclfile, it doesn't contain terraform resources and it's not part of a terraform module, it's a terragrunt configuration file that orchestrates a terraform module.Overriding the
hcldefinition works but I would have to re-write another entry for actualtffiles using the same options ashclexcept the lsp configuration.Is there another way to split file extensions in different language entries? Should I simply remove
.hclextension from thehclfiletype definition?Beta Was this translation helpful? Give feedback.
All reactions