A related project is Lite, a graphical text editor that's a bit further along the frontier of useful features vs code simplicity.
It includes lua 5.2 and SDL. On top of that, it's a few c files to handle input and rendering, and a set of neatly written lua modules for the logic.
Repo and author write-up: