aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters/shfmt.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/conform/formatters/shfmt.lua')
-rw-r--r--lua/conform/formatters/shfmt.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/lua/conform/formatters/shfmt.lua b/lua/conform/formatters/shfmt.lua
new file mode 100644
index 0000000..6e40f0c
--- /dev/null
+++ b/lua/conform/formatters/shfmt.lua
@@ -0,0 +1,9 @@
+---@type conform.FormatterConfig
+return {
+ meta = {
+ url = "https://github.com/mvdan/sh",
+ description = "A shell parser, formatter, and interpreter with `bash` support.",
+ },
+ command = "shfmt",
+ args = { "-filename", "$FILENAME" },
+}