diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | doc/conform.txt | 1 | ||||
-rw-r--r-- | lua/conform/formatters/kcl.lua | 10 |
3 files changed, 12 insertions, 0 deletions
@@ -245,6 +245,7 @@ You can view this list in vim with `:help conform-formatters` - [jq](https://github.com/stedolan/jq) - Command-line JSON processor. - [jsonnetfmt](https://github.com/google/go-jsonnet/tree/master/cmd/jsonnetfmt) - jsonnetfmt is a command line tool to format jsonnet files. - [just](https://github.com/casey/just) - Format Justfile. +- [kcl](https://www.kcl-lang.io/docs/tools/cli/kcl/fmt) - The KCL Format tool modifies the files according to the KCL code style - [ktfmt](https://github.com/facebook/ktfmt) - Reformats Kotlin source code to comply with the common community standard conventions. - [ktlint](https://ktlint.github.io/) - An anti-bikeshedding Kotlin linter with built-in formatter. - [latexindent](https://github.com/cmhughes/latexindent.pl) - A perl script for formatting LaTeX files that is generally included in major TeX distributions. diff --git a/doc/conform.txt b/doc/conform.txt index 1b763d3..6775b5b 100644 --- a/doc/conform.txt +++ b/doc/conform.txt @@ -292,6 +292,7 @@ FORMATTERS *conform-formatter `jq` - Command-line JSON processor. `jsonnetfmt` - jsonnetfmt is a command line tool to format jsonnet files. `just` - Format Justfile. +`kcl` - The KCL Format tool modifies the files according to the KCL code style `ktfmt` - Reformats Kotlin source code to comply with the common community standard conventions. `ktlint` - An anti-bikeshedding Kotlin linter with built-in formatter. 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, +} |