Skip to content

Commit

Permalink
feat(formatter): add liquidsoap-prettier (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
elythh committed Mar 1, 2024
1 parent c36fc64 commit dc873e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
11 changes: 11 additions & 0 deletions lua/conform/formatters/liquidsoap-prettier.lua
Original file line number Diff line number Diff line change
@@ -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,
}

0 comments on commit dc873e9

Please sign in to comment.