aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--lua/conform/formatters/liquidsoap-prettier.lua11
2 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index 2b64a8b..2271c59 100644
--- a/README.md
+++ b/README.md
@@ -237,6 +237,7 @@ You can view this list in vim with `:help conform-formatters`
- [just](https://github.com/casey/just) - Format Justfile.
- [ktlint](https://ktlint.github.io/) - An anti-bikeshedding Kotlin linter with built-in formatter.
- [latexindent](https://github.com/cmhughes/latexindent.pl) - A perl script for formatting LaTeX files that is generally included in major TeX distributions.
+- [liquidsoap-prettier](https://github.com/savonet/liquidsoap-prettier) - A binary to format Liquidsoap scripts.
- [markdown-toc](https://github.com/jonschlinkert/markdown-toc) - API and CLI for generating a markdown TOC (table of contents) for a README or any markdown files.
- [markdownlint](https://github.com/DavidAnson/markdownlint) - A Node.js style checker and lint tool for Markdown/CommonMark files.
- [markdownlint-cli2](https://github.com/DavidAnson/markdownlint-cli2) - A fast, flexible, configuration-based command-line interface for linting Markdown/CommonMark files with the markdownlint library.
diff --git a/lua/conform/formatters/liquidsoap-prettier.lua b/lua/conform/formatters/liquidsoap-prettier.lua
new file mode 100644
index 0000000..e6ffb87
--- /dev/null
+++ b/lua/conform/formatters/liquidsoap-prettier.lua
@@ -0,0 +1,11 @@
+local util = require("conform.util")
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://github.com/savonet/liquidsoap-prettier",
+ description = "A binary to format Liquidsoap scripts",
+ },
+ command = util.from_node_modules("liquidsoap-prettier"),
+ args = { "-w", "$FILENAME" },
+ stdin = false,
+}