aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/conform/formatters/kcl.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/conform/formatters/kcl.lua b/lua/conform/formatters/kcl.lua
new file mode 100644
index 0000000..adaa547
--- /dev/null
+++ b/lua/conform/formatters/kcl.lua
@@ -0,0 +1,10 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://www.kcl-lang.io/docs/tools/cli/kcl/fmt",
+ description = "The KCL Format tool modifies the files according to the KCL code style.",
+ },
+ command = "kcl",
+ args = { "fmt", "$FILENAME" },
+ stdin = false,
+}