Failing to install via Homebrew

Homebrew is failing to install Neovim on my OSX Catalina 10.15.7.

openjdk: A full installation of is required to compile
this software. Installing just the Command Line Tools is not sufficient.
Xcode can be installed from the App Store.
Error: neovim: An unsatisfied requirement failed this build.

I’m not willing to install a 10gb editor that I won’t use in my computer in order to install a lightweight one I will actually use.

I don’t get it: openjdk isn’t even a dependency. Any help would be highly appreciated.

Oh it does also say:

Warning: You are using macOS 10.15.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from MacHomebrew on Twitter.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.