From 484524b875375800f7743e3181d236bce35f91fc Mon Sep 17 00:00:00 2001 From: ray-x Date: Wed, 6 Jul 2022 08:29:59 +1000 Subject: [PATCH] do not use golines as goimport default formater, #157 --- lua/go/format.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/go/format.lua b/lua/go/format.lua index 2741f2f..bc25738 100644 --- a/lua/go/format.lua +++ b/lua/go/format.lua @@ -161,9 +161,9 @@ M.goimport = function(...) return run(args, buf, "goimports") end + -- golines base formatter is goimports local a = vim.deepcopy(goimport_args) - require("go.install").install("golines") - run(a, buf, "golines") + run(a, buf, goimport) end return M