From dc873e94f300cdadf0c1949c14b6e9137e7a9981 Mon Sep 17 00:00:00 2001 From: gwen <50964650+elythh@users.noreply.github.com> Date: Fri, 1 Mar 2024 21:32:57 +0100 Subject: feat(formatter): add liquidsoap-prettier (#312) --- README.md | 1 + lua/conform/formatters/liquidsoap-prettier.lua | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 lua/conform/formatters/liquidsoap-prettier.lua 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, +} -- cgit v1.2.3-70-g09d2