diff --git a/lua/test-samurai-go-runner/init.lua b/lua/test-samurai-go-runner/init.lua index 9bb8f68..abdf025 100644 --- a/lua/test-samurai-go-runner/init.lua +++ b/lua/test-samurai-go-runner/init.lua @@ -256,7 +256,7 @@ end local function collect_go_test_files(root) if not root or root == "" then - root = vim.loop.cwd() + root = vim.uv.cwd() end local files = vim.fn.globpath(root, "**/*_test.go", false, true) if type(files) ~= "table" then @@ -384,7 +384,7 @@ function runner.build_file_command(bufnr) end local root = find_root(path, { "go.mod", ".git" }) if not root or root == "" then - root = vim.loop.cwd() + root = vim.uv.cwd() end local spec = { file = path, cwd = root } local pkg = build_pkg_arg(spec) @@ -418,7 +418,7 @@ function runner.build_all_command(bufnr) root = find_root(path, { "go.mod", ".git" }) end if not root or root == "" then - root = vim.loop.cwd() + root = vim.uv.cwd() end local cmd = { "go", "test", "-json", "-v", "./..." } return {