diff --git a/doc/conform.txt b/doc/conform.txt index 99921893..a12dba60 100644 --- a/doc/conform.txt +++ b/doc/conform.txt @@ -160,6 +160,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 00000000..9cd2b5bc --- /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", + "-", + }, +}