This uses LuaJIT to extend the Nano text editor. Under “Limitations,” the author states that
> The macro system can only effect the open buffer, it can't modify nano's default behaviours. It cannot move the active cursor.
> This turns it into a text-manipulation system, rather than a self-modifying system like you might find in vim and emacs.
An example of a text editor that is extensible in Lua from the ground up is Textadept.
https://foicica.com/textadept/
By the way, it's nice to see projects hosted on Sourcehut get some attention on Hacker News.