Skip to content

Commit

Permalink
feat: add support for purs-tidy (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
hougesen committed Mar 19, 2024
1 parent 41586cb commit bf109f0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -266,6 +266,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.
- [roc](https://github.com/roc-lang/roc) - A fast, friendly, functional language.
Expand Down
1 change: 1 addition & 0 deletions doc/conform.txt
Expand Up @@ -301,6 +301,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.
`roc` - A fast, friendly, functional language.
Expand Down
10 changes: 10 additions & 0 deletions 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,
}

0 comments on commit bf109f0

Please sign in to comment.