From 03a07d58be09a681ab162f3a069dc9e86589bacb Mon Sep 17 00:00:00 2001 From: Mads Hougesen Date: Sat, 1 Jun 2024 21:03:02 +0200 Subject: feat: add support for kcl fmt (#431) --- lua/conform/formatters/kcl.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lua/conform/formatters/kcl.lua (limited to 'lua/conform') 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, +} -- cgit v1.2.3-70-g09d2