Also see <https://github.com/koreader/koreader/pull/10611>. There's some degree of compatibility with the LuaLS config `.luarc.json` but it didn't seem to work all that well.