aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgwen <50964650+elythh@users.noreply.github.com>2024-03-01 21:32:57 +0100
committerGitHub <noreply@github.com>2024-03-01 12:32:57 -0800
commitdc873e94f300cdadf0c1949c14b6e9137e7a9981 (patch)
treeffa6f2c71fcddffc5559975381be8423ccf66075
parentc36fc6492be27108395443a67bcbd2b3280f29c5 (diff)
feat(formatter): add liquidsoap-prettier (#312)
-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,
+}