From 45e96954bc64b5b1b2e4f502cd75d350d0f71d57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20Harnes?= Date: Mon, 6 Nov 2023 11:29:21 +0100 Subject: [PATCH] feat: add typstfmt --- README.md | 1 + lua/conform/formatters/typstfmt.lua | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 lua/conform/formatters/typstfmt.lua diff --git a/README.md b/README.md index c783476d..64d22c90 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 00000000..e5d0e5fd --- /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, +}