### What did you do?
1. Followed the instructions at https://github.com/bazelbuild/rules_go/wiki/Editor-setup to setup protobuf support for Neovim using `gopls`. ([init.lua](https://github.com/bazelbuild/rules_go/wiki/Editor-setup) starting from kickstart.nvim)
2. Opened a project file and tried to use Go to Definition.
### What did you see happen?
Received the error:
Error when executing textDocument/definition : no package metadata for file file:///Users/david.yan/workspace/...
### What did you expect to see?
Should have navigated to the function declaration. This works when [these lines](https://gist.github.com/david-yan/daaa1ecb148c380e38ee8dd0761ac84f#file-init-lua-L621-L633) are removed.
### Editor and settings
gopls version
go env
Error when executing textDocument/definition : no package metadata for file file:///Users/david.yan/workspace/...
NVIM v0.10.2 Build type: Release LuaJIT 2.1.1727870382