fix bugs after upgrading to neovim 0.12
tests / test (push) Successful in 20s

This commit is contained in:
2026-05-12 08:34:44 +02:00
parent 5027f012d4
commit 8f09942511
+3 -3
View File
@@ -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 {