summaryrefslogtreecommitdiff
path: root/lua/lang/json.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lang/json.lua')
-rw-r--r--lua/lang/json.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/lang/json.lua b/lua/lang/json.lua
index 45edfeb8..92ea769e 100644
--- a/lua/lang/json.lua
+++ b/lua/lang/json.lua
@@ -10,6 +10,7 @@ M.config = function()
formatter = {
exe = "python",
args = { "-m", "json.tool" },
+ stdin = true,
},
}
end
@@ -20,7 +21,7 @@ M.format = function()
return {
exe = O.lang.json.formatter.exe,
args = O.lang.json.formatter.args,
- stdin = not (O.lang.json.formatter.stdin ~= nil),
+ stdin = O.lang.json.formatter.stdin,
}
end,
}