From bf109f061fc3cd75394b7823923187ae045cbf22 Mon Sep 17 00:00:00 2001 From: Mads Hougesen Date: Tue, 19 Mar 2024 17:01:09 +0100 Subject: feat: add support for purs-tidy (#345) --- README.md | 1 + doc/conform.txt | 1 + lua/conform/formatters/purs-tidy.lua | 10 ++++++++++ 3 files changed, 12 insertions(+) create mode 100644 lua/conform/formatters/purs-tidy.lua 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, +} -- cgit v1.2.3-70-g09d2