Skip to content

Commit

Permalink
feat: add typstfmt (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
HakonHarnes committed Nov 6, 2023
1 parent 0d43691 commit b1f1194
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
9 changes: 9 additions & 0 deletions lua/conform/formatters/typstfmt.lua
Original file line number Diff line number Diff line change
@@ -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,
}

0 comments on commit b1f1194

Please sign in to comment.