Well, I decided to just change my Mac's default text editor. It was the path of least resistance. I use VS Code and JetBrains mostly, but I want to open MacVim when I cmd+click a filename in a stacktrace.
First install duti.
brew install duti
To change the default text editor to MacVim