aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMads Hougesen <mads@mhouge.dk>2024-03-19 17:01:09 +0100
committerGitHub <noreply@github.com>2024-03-19 09:01:09 -0700
commitbf109f061fc3cd75394b7823923187ae045cbf22 (patch)
tree254dac51c2b4766db47e6aef8ed7ad97a4ae2326
parent41586cbc81b8d344a795264989a3db79d0a27615 (diff)
feat: add support for purs-tidy (#345)
-rw-r--r--README.md1
-rw-r--r--doc/conform.txt1
-rw-r--r--lua/conform/formatters/purs-tidy.lua10
3 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index 9c6b546..be396e8 100644
--- a/README.md
+++ b/README.md
@@ -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,
+}