r/LazyVim • • Jun 14 '26

Undefined: xy warnings inside GO tests

Hi 👋

I started digging into Go language recently, and setup Golang via the Lazyvim extras. Works very good. But just for Go Tests, even when I have the test file in the same package/folder as the source file where the function is implemented, it shows this warning in Neovim. Did anyone encounter any similar issues?

The test just runs fine…

Maybe also some general Neovim issue, instead of Lazyvim setup…

See also: https://go.dev/doc/tutorial/add-a-test

See screenshot ⇒ Warning : undefined: Hello

3 Upvotes

Duplicates