diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | doc/conform.txt | 1 | ||||
-rw-r--r-- | lua/conform/formatters/purs-tidy.lua | 10 |
3 files changed, 12 insertions, 0 deletions
@@ -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. diff --git a/doc/conform.txt b/doc/conform.txt index c710344..c07617e 100644 --- a/doc/conform.txt +++ b/doc/conform.txt @@ -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. diff --git a/lua/conform/formatters/purs-tidy.lua b/lua/conform/formatters/purs-tidy.lua new file mode 100644 index 0000000..a89ed07 --- /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, +} |