mirror of
https://github.com/nmasur/dotfiles
synced 2025-12-24 07:12:42 +00:00
fix terraform lsp in helix
This commit is contained in:
@@ -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 = [
|
||||||
|
|||||||
Reference in New Issue
Block a user