From d6728de3f4a4ee37def6a5b88815dfc406e3b3be Mon Sep 17 00:00:00 2001 From: Jonas Ohland Date: Mon, 13 May 2024 15:35:43 +0200 Subject: [PATCH 1/2] feat: add hclfmt hcl formatter --- lua/conform/formatters/hcl.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lua/conform/formatters/hcl.lua diff --git a/lua/conform/formatters/hcl.lua b/lua/conform/formatters/hcl.lua new file mode 100644 index 00000000..f6f181a2 --- /dev/null +++ b/lua/conform/formatters/hcl.lua @@ -0,0 +1,8 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/hashicorp/hcl", + description = "A formatter for HCL files", + }, + command = "hclfmt", +} From e03a11c94291f9ab1a45e85f2e43c9271325e3c4 Mon Sep 17 00:00:00 2001 From: Steven Arcangeli <506791+stevearc@users.noreply.github.com> Date: Mon, 13 May 2024 11:09:13 -0600 Subject: [PATCH 2/2] doc: format description --- lua/conform/formatters/hcl.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/conform/formatters/hcl.lua b/lua/conform/formatters/hcl.lua index f6f181a2..8cffc7fb 100644 --- a/lua/conform/formatters/hcl.lua +++ b/lua/conform/formatters/hcl.lua @@ -2,7 +2,7 @@ return { meta = { url = "https://github.com/hashicorp/hcl", - description = "A formatter for HCL files", + description = "A formatter for HCL files.", }, command = "hclfmt", }