From 3f4cf5f01d6fd9da2c133b22ff79c8a55a7910fc Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Sat, 17 Jul 2021 11:02:17 +0430 Subject: be explicit about stdin for formatters (#987) --- lua/lang/python.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lua/lang/python.lua') diff --git a/lua/lang/python.lua b/lua/lang/python.lua index b4f74a6a..cbd319b0 100644 --- a/lua/lang/python.lua +++ b/lua/lang/python.lua @@ -18,6 +18,7 @@ M.config = function() formatter = { exe = "yapf", args = {}, + stdin = true, }, linters = { "flake8", @@ -33,7 +34,7 @@ M.format = function() return { exe = O.lang.python.formatter.exe, args = O.lang.python.formatter.args, - stdin = not (O.lang.python.formatter.stdin ~= nil), + stdin = O.lang.python.formatter.stdin, } end, } -- cgit v1.2.3