aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters
diff options
context:
space:
mode:
authorJonas Ohland <32197138+jonasohland@users.noreply.github.com>2024-05-13 19:10:14 +0200
committerGitHub <noreply@github.com>2024-05-13 11:10:14 -0600
commit37cbceab0a3b4979c4f0f1ae7aede0d0fa84c1d1 (patch)
tree76d9086868077b74963254a5af3683a4c3297a89 /lua/conform/formatters
parent4f0cdf07b5498935c34d6cfefde059a3a91584c4 (diff)
feat: add hcl formatter (hclfmt) (#402)
* feat: add hclfmt hcl formatter * doc: format description --------- Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com>
Diffstat (limited to 'lua/conform/formatters')
-rw-r--r--lua/conform/formatters/hcl.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/lua/conform/formatters/hcl.lua b/lua/conform/formatters/hcl.lua
new file mode 100644
index 0000000..8cffc7f
--- /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",
+}