From a0cabaaf5c94137c8dc34043244a34b552860af6 Mon Sep 17 00:00:00 2001 From: Marco Pas Date: Wed, 15 Nov 2023 19:45:56 +0100 Subject: feat: add packer formatter (#202) --- lua/conform/formatters/packer_fmt.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lua/conform/formatters/packer_fmt.lua (limited to 'lua/conform/formatters/packer_fmt.lua') 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", "-" }, +} -- cgit v1.2.3-70-g09d2