“Magic”
The ARCHITECTURE.md file in the source tree contains some information about lnav’s internals.