From 06f23dd1a6800ad487eed1ec9edace1ad7423324 Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 29 Nov 2023 10:20:05 +0100 Subject: [PATCH] For go-tests on saving, only search tests in files named *_test.go --- lua/myworkflow/go-tests.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/myworkflow/go-tests.lua b/lua/myworkflow/go-tests.lua index 1b57428..fb62599 100644 --- a/lua/myworkflow/go-tests.lua +++ b/lua/myworkflow/go-tests.lua @@ -126,7 +126,7 @@ function M.goRunTests() end function M.goSetAllMarks() - local files = vim.fn.system({ "find", "-type", "f", "-name", "*.go" }) + local files = vim.fn.system({ "find", "-type", "f", "-name", "*_test.go" }) local sep = "\n" local filetable = {}