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/go.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lua/lang/go.lua') diff --git a/lua/lang/go.lua b/lua/lang/go.lua index 4174629a..ee7a4df7 100644 --- a/lua/lang/go.lua +++ b/lua/lang/go.lua @@ -5,6 +5,7 @@ M.config = function() formatter = { exe = "gofmt", args = {}, + stdin = true, }, linters = { "golangcilint", @@ -19,7 +20,7 @@ M.format = function() return { exe = O.lang.go.formatter.exe, args = O.lang.go.formatter.args, - stdin = not (O.lang.go.formatter.stdin ~= nil), + stdin = O.lang.go.formatter.stdin, } end, } -- cgit v1.2.3