Lua is very much not a general-purpose Language. It can be used like one, but it's a specialized language thought to live inside a "host" application, which it then controls. Which does seem to fit the usecase here.
Would you be able to substantiate your claim that it is more conductive to text editor code?
> it is not unpleasant to use
I'm afraid that is a very low bar. Lua is not unpleasant to use either.