Skip to content

Commit

Permalink
Remove command line arguments for djlint
Browse files Browse the repository at this point in the history
Command line arguments for djlint override those in the configuration file.
  • Loading branch information
zidhuss committed Aug 8, 2024
1 parent 2122fe2 commit e4f38da
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lua/conform/formatters/djlint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ return {
description = "✨ HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang.",
},
command = "djlint",
args = function(_, ctx)
return { "--reformat", "--indent", ctx.shiftwidth, "-" }
end,
args = {
"--reformat",
"-",
},
cwd = util.root_file({
".djlintrc",
}),
Expand Down

0 comments on commit e4f38da

Please sign in to comment.