diff options
author | zootedb0t <05kraken@proton.me> | 2023-09-14 23:34:45 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-14 11:04:45 -0700 |
commit | ead025784c8e31b8e45016e620c2f17a13ff741a (patch) | |
tree | e2fd73e3078f4f01688806a66708ba518d11b622 | |
parent | dbf1d44404d4e0dcd23dcb94a5559ef0d0c424cc (diff) |
feat: add djlint (#47)
-rw-r--r-- | doc/conform.txt | 1 | ||||
-rw-r--r-- | lua/conform/formatters/djlint.lua | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/doc/conform.txt b/doc/conform.txt index 4cda663..bd73851 100644 --- a/doc/conform.txt +++ b/doc/conform.txt @@ -161,6 +161,7 @@ FORMATTERS *conform-formatter `dart_format` - Replace the whitespace in your program with formatting that follows Dart guidelines. `dfmt` - Formatter for D source code. +`djlint` - HTML Template Linter and Formatter. `elm_format` - elm-format formats Elm source code according to a standard set of rules based on the official [Elm Style Guide](https://elm- lang.org/docs/style-guide). diff --git a/lua/conform/formatters/djlint.lua b/lua/conform/formatters/djlint.lua new file mode 100644 index 0000000..9cd2b5b --- /dev/null +++ b/lua/conform/formatters/djlint.lua @@ -0,0 +1,12 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/Riverside-Healthcare/djLint", + description = "✨ HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang.", + }, + command = "djlint", + args = { + "--reformat", + "-", + }, +} |