There is an example: https://github.com/geany/geany-plugins/blob/master/geanylua/examples/info/li...
It list all files and open the list in new tab of Geany or lists them in choose menu. List in new tab works as expected but geany.choose function not - it lists only two first opened files.