diff --git a/examples/formatter-terraform.toml b/examples/formatter-terraform.toml index ac94312..896cb0e 100644 --- a/examples/formatter-terraform.toml +++ b/examples/formatter-terraform.toml @@ -2,5 +2,5 @@ [formatter.terraform] command = "tofu" excludes = [] -includes = ["*.tf"] +includes = ["*.tf", "*.tfvars", "*.tftest.hcl"] options = ["fmt"] diff --git a/programs/terraform.nix b/programs/terraform.nix index 6b95b5c..dddf97a 100644 --- a/programs/terraform.nix +++ b/programs/terraform.nix @@ -15,7 +15,12 @@ in settings.formatter.terraform = { command = cfg.package; options = [ "fmt" ]; - includes = [ "*.tf" ]; + # All opentofu-supported files + includes = [ + "*.tf" + "*.tfvars" + "*.tftest.hcl" + ]; }; }; }