aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters
diff options
context:
space:
mode:
authorAlexandros Alexiou <alex.alexiouu@gmail.com>2024-05-06 21:09:13 +0300
committerGitHub <noreply@github.com>2024-05-06 11:09:13 -0700
commitb72f650206ddfeadd6c7df0f775a928e82ece353 (patch)
tree473ad3f477e6932a379a9f91faeae8ff5709e34f /lua/conform/formatters
parent3cd1135cb2978c9d45b8dc6afc80045fb8a93157 (diff)
feat: add ktfmt formatter for Kotlin (#392)
Diffstat (limited to 'lua/conform/formatters')
-rw-r--r--lua/conform/formatters/ktfmt.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/lua/conform/formatters/ktfmt.lua b/lua/conform/formatters/ktfmt.lua
new file mode 100644
index 0000000..7be580b
--- /dev/null
+++ b/lua/conform/formatters/ktfmt.lua
@@ -0,0 +1,9 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://github.com/facebook/ktfmt",
+ description = "Reformats Kotlin source code to comply with the common community standard conventions.",
+ },
+ command = "ktfmt",
+ args = { "-" },
+}