aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters/swiftformat.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/conform/formatters/swiftformat.lua')
-rw-r--r--lua/conform/formatters/swiftformat.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/lua/conform/formatters/swiftformat.lua b/lua/conform/formatters/swiftformat.lua
new file mode 100644
index 0000000..821a010
--- /dev/null
+++ b/lua/conform/formatters/swiftformat.lua
@@ -0,0 +1,9 @@
+---@type conform.FormatterConfig
+return {
+ meta = {
+ url = "https://github.com/nicklockwood/SwiftFormat",
+ description = "SwiftFormat is a code library and command-line tool for reformatting `swift` code on macOS or Linux.",
+ },
+ command = "swiftformat",
+ args = { "--stdinpath", "$FILENAME" },
+}