We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b7e3df commit 1bf8b5bCopy full SHA for 1bf8b5b
lua/conform/formatters/jq.lua
@@ -6,6 +6,6 @@ return {
6
},
7
command = "jq",
8
args = function(_, ctx)
9
- return { "--indent", ctx.shiftwidth }
+ return { "--indent", math.max(-1, math.min(7, ctx.shiftwidth)) }
10
end,
11
}
0 commit comments