aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters/djlint.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/conform/formatters/djlint.lua')
-rw-r--r--lua/conform/formatters/djlint.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/lua/conform/formatters/djlint.lua b/lua/conform/formatters/djlint.lua
index b7a177b..13c966d 100644
--- a/lua/conform/formatters/djlint.lua
+++ b/lua/conform/formatters/djlint.lua
@@ -7,8 +7,7 @@ return {
},
command = "djlint",
args = function(_, ctx)
- local indent = vim.bo[ctx.buf].tabstop or 4 -- default is 4
- return { "--reformat", "--indent", indent, "-" }
+ return { "--reformat", "--indent", ctx.shiftwidth, "-" }
end,
cwd = util.root_file({
".djlintrc",