mirror of
https://github.com/nmasur/dotfiles
synced 2026-11-08 04:05:02 +00:00
fix terraform lsp in helix
This commit is contained in:
1 parent
9c35744ab9
commit
603b9a2eff
1 file changed
+12
-4
@@ -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 = [
|
||||
|
||||
Reference in new issue
Block a user