Thanks @carlrowan .
FYI you might consider updating that comment. Searching just SX126x results in a few results, and the one you linked is last with no real indication which is the correct one. “SX126x-Arduino” would make it very clear.
Also, that librarymanager link does not work with Arduino IDE v2 and later