Skip to content

Commit

Permalink
feat: add prettypst formatter (#595)
Browse files Browse the repository at this point in the history
* feat(typst): add `prettypst` formatter

* doc: unify description format

---------

Co-authored-by: Steven Arcangeli <[email protected]>
  • Loading branch information
dustypomerleau and stevearc authored Dec 10, 2024
1 parent e76afe8 commit 676704d
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 @@ -309,6 +309,7 @@ You can view this list in vim with `:help conform-formatters`
- [prettier](https://github.com/prettier/prettier) - Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
- [prettierd](https://github.com/fsouza/prettierd) - prettier, as a daemon, for ludicrous formatting speed.
- [pretty-php](https://github.com/lkrms/pretty-php) - The opinionated PHP code formatter.
- [prettypst](https://github.com/antonWetzel/prettypst) - Formatter for Typst.
- [puppet-lint](https://github.com/puppetlabs/puppet-lint) - Check that your Puppet manifests conform to the style guide.
- [purs-tidy](https://github.com/natefaubion/purescript-tidy) - A syntax tidy-upper for PureScript.
- [pyink](https://github.com/google/pyink) - A Python formatter, forked from Black with a few different formatting behaviors.
Expand Down
9 changes: 9 additions & 0 deletions lua/conform/formatters/prettypst.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---@type conform.FileFormatterConfig
return {
meta = {
url = "https://github.com/antonWetzel/prettypst",
description = "Formatter for Typst.",
},
command = "prettypst",
stdin = true,
}

0 comments on commit 676704d

Please sign in to comment.