diff --git a/README.md b/README.md index fab2b53e..f861cdb1 100644 --- a/README.md +++ b/README.md @@ -264,6 +264,7 @@ You can view this list in vim with `:help conform-formatters` - [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. - [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. - [reorder-python-imports](https://github.com/asottile/reorder-python-imports) - Rewrites source to reorder python imports - [rescript-format](https://rescript-lang.org/) - The built-in ReScript formatter. - [rubocop](https://github.com/rubocop/rubocop) - Ruby static code analyzer and formatter, based on the community Ruby style guide. diff --git a/doc/conform.txt b/doc/conform.txt index 5ba7852b..1e815c41 100644 --- a/doc/conform.txt +++ b/doc/conform.txt @@ -298,6 +298,7 @@ FORMATTERS *conform-formatter `prettierd` - prettier, as a daemon, for ludicrous formatting speed. `pretty-php` - The opinionated PHP code formatter. `puppet-lint` - Check that your Puppet manifests conform to the style guide. +`purs-tidy` - A syntax tidy-upper for PureScript. `reorder-python-imports` - Rewrites source to reorder python imports `rescript-format` - The built-in ReScript formatter. `rubocop` - Ruby static code analyzer and formatter, based on the community Ruby diff --git a/lua/conform/formatters/purs-tidy.lua b/lua/conform/formatters/purs-tidy.lua new file mode 100644 index 00000000..a89ed07f --- /dev/null +++ b/lua/conform/formatters/purs-tidy.lua @@ -0,0 +1,10 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/natefaubion/purescript-tidy", + description = "A syntax tidy-upper for PureScript.", + }, + command = "purs-tidy", + args = { "format" }, + stdin = true, +}