aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pas <marco.pasopas@gmail.com>2023-11-15 19:45:56 +0100
committerGitHub <noreply@github.com>2023-11-15 10:45:56 -0800
commita0cabaaf5c94137c8dc34043244a34b552860af6 (patch)
tree2ecdf984406ef4a4932ba239ded5f9824e320dc1
parente2b889e26586acf30dda7b4a5c3f1a063bc18f18 (diff)
feat: add packer formatter (#202)
-rw-r--r--lua/conform/formatters/packer_fmt.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/lua/conform/formatters/packer_fmt.lua b/lua/conform/formatters/packer_fmt.lua
new file mode 100644
index 0000000..572b5f4
--- /dev/null
+++ b/lua/conform/formatters/packer_fmt.lua
@@ -0,0 +1,9 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://developer.hashicorp.com/packer/docs/commands/fmt",
+ description = "The packer fmt Packer command is used to format HCL2 configuration files to a canonical format and style.",
+ },
+ command = "packer",
+ args = { "fmt", "-" },
+}