Not very familiar with vscode, but it seems all you need is a client that talks LSP, such as
https://github.com/LuaLS/lua-language-server and all the "go to definition" et al functions should work out of the box with any competent editor.
Also, you'll want editorconfig because the coding style differs from most lua codebases (ie: identation at 4 spaces)