From 7d0d1196d7d672615c3207185778430510972058 Mon Sep 17 00:00:00 2001 From: ray-x Date: Thu, 11 Mar 2021 09:21:24 +1100 Subject: [PATCH] GoTest --- lua/go.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/go.lua b/lua/go.lua index 503e89b..410b890 100644 --- a/lua/go.lua +++ b/lua/go.lua @@ -22,7 +22,7 @@ function go.setup(cfg) vim.cmd([[command GoRun :setl makeprg=go\ run | :Gmake]]) vim.cmd([[command GoTestFunc :Gmake -run ..]]) - vim.cmd([[command GoTest :compiler gotest | :Gmake]]) + vim.cmd([[command GoTest :setl makeprg=go\ test\ ./... | :Gmake]]) vim.cmd([[command GoTestCompile setl makeprg=go\ build | :Gmake]]) vim.cmd([[command GoAddTest lua require("go.gotests").fun_test()]]) @@ -33,7 +33,8 @@ function go.setup(cfg) vim.cmd([[command! -nargs=* GoRmTag lua require("go.tags").rm()]]) vim.cmd([[command GoClearTag lua require("go.tags").clear()]]) - vim.cmd([[command GoLint :compiler golangci-lint | :Gmake]]) + -- vim.cmd([[command GoLint :compiler golangci-lint run | :Gmake]]) + vim.cmd([[command GoLint :setl makeprg=golangci-lint\ run\ --out-format\ tab | :Gmake]]) vim.cmd("au FileType go au QuickFixCmdPost [^l]* nested cwindow") vim.cmd("au FileType go au QuickFixCmdPost l* nested lwindow")