fix terraform lsp in helix

This commit is contained in:
Noah Masur
2025-12-06 13:43:23 -05:00
parent 9c35744ab9
commit 603b9a2eff

View File

@@ -169,13 +169,17 @@ in
];
}
{
name = "terraform";
scope = "source.tf";
name = "hcl";
scope = "source.hcl";
# injection-regex = "terraform";
auto-format = true;
language-servers = [ "terraform-ls" ];
language-id = "terraform";
file-types = [
"tf"
"tfvars"
"terraform"
{ glob = "*.auto.tfvars"; }
];
formatter = {
command = lib.getExe pkgs.terraform;
@@ -186,9 +190,13 @@ in
};
}
{
name = "hcl";
name = "hcl-packer";
scope = "source.hcl-packer";
auto-format = true;
file-types = [ "hcl" ];
file-types = [
"hcl"
"pkr.hcl"
];
formatter = {
command = "${pkgs.packer}/bin/packer";
args = [