Here’s what I use to reinstall the main branch of the neovim Homebrew package:

brew unlink neovim && brew install neovim --HEAD --fetch-HEAD

My searches weren’t turning up good results.