diff --git a/README.md b/README.md index 08420676..d8ae04e4 100644 --- a/README.md +++ b/README.md @@ -244,6 +244,7 @@ You can view this list in vim with `:help conform-formatters` - [shellharden](https://github.com/anordal/shellharden) - The corrective bash syntax highlighter. - [shfmt](https://github.com/mvdan/sh) - A shell parser, formatter, and interpreter with `bash` support. - [sql_formatter](https://github.com/sql-formatter-org/sql-formatter) - A whitespace formatter for different query languages. +- [sqlfmt](https://docs.sqlfmt.com) - sqlfmt formats your dbt SQL files so you don't have to. It is similar in nature to Black, gofmt, and rustfmt (but for SQL). - [squeeze_blanks](https://www.gnu.org/software/coreutils/manual/html_node/cat-invocation.html#cat-invocation) - Squeeze repeated blank lines into a single blank line via `cat -s`. - [standardjs](https://standardjs.com) - JavaScript Standard style guide, linter, and formatter. - [standardrb](https://github.com/standardrb/standard) - Ruby's bikeshed-proof linter and formatter. diff --git a/lua/conform/formatters/sqlfmt.lua b/lua/conform/formatters/sqlfmt.lua new file mode 100644 index 00000000..1ee76027 --- /dev/null +++ b/lua/conform/formatters/sqlfmt.lua @@ -0,0 +1,9 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://docs.sqlfmt.com", + description = "sqlfmt formats your dbt SQL files so you don't have to. It is similar in nature to Black, gofmt, and rustfmt (but for SQL)", + }, + command = "sqlfmt", + args = { "$FILENAME" }, +}