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