Skip to content

Commit

Permalink
fix: set a cwd for djlint (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
azzamsa committed Jan 5, 2024
1 parent e6c1353 commit 0802406
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/conform/formatters/djlint.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
local util = require("conform.util")
---@type conform.FileFormatterConfig
return {
meta = {
Expand All @@ -9,4 +10,7 @@ return {
"--reformat",
"-",
},
cwd = util.root_file({
".djlintrc",
}),
}

0 comments on commit 0802406

Please sign in to comment.