aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--lua/conform/formatters/typstfmt.lua9
2 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index c783476..64d22c9 100644
--- a/README.md
+++ b/README.md
@@ -265,6 +265,7 @@ You can view this list in vim with `:help conform-formatters`
- [tlint](https://github.com/tighten/tlint) - Tighten linter for Laravel conventions with support for auto-formatting.
- [trim_newlines](https://www.gnu.org/software/gawk/manual/gawk.html) - Trim new lines with awk.
- [trim_whitespace](https://www.gnu.org/software/gawk/manual/gawk.html) - Trim whitespaces with awk.
+- [typstfmt](https://github.com/astrale-sharp/typstfmt) - Basic formatter for the Typst language with a future!
- [uncrustify](https://github.com/uncrustify/uncrustify) - A source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and Vala.
- [usort](https://github.com/facebook/usort) - Safe, minimal import sorting for Python projects.
- [xmlformat](https://github.com/pamoller/xmlformatter) - xmlformatter is an Open Source Python package, which provides formatting of XML documents.
diff --git a/lua/conform/formatters/typstfmt.lua b/lua/conform/formatters/typstfmt.lua
new file mode 100644
index 0000000..e5d0e5f
--- /dev/null
+++ b/lua/conform/formatters/typstfmt.lua
@@ -0,0 +1,9 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://github.com/astrale-sharp/typstfmt",
+ description = "Basic formatter for the Typst language with a future!",
+ },
+ command = "typstfmt",
+ stdin = true,
+}