diff --git a/lua/conform/formatters/ktlint.lua b/lua/conform/formatters/ktlint.lua new file mode 100644 index 00000000..85869bed --- /dev/null +++ b/lua/conform/formatters/ktlint.lua @@ -0,0 +1,10 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://ktlint.github.io/", + description = "An anti-bikeshedding Kotlin linter with built-in formatter.", + }, + command = "ktlint", + args = { "--format", "--stdin", "**/*.kt", "**/*.kts" }, + stdin = true, +}