Nice scripts. I want to give an advice you may or may not know. In Bash you can "export" a function, which then you can use the function in fzf preview or bind command like any other program.
I am only reposting this unfortunately, but you can probably open an issue on the Github to ask the owner to detail a bit more the scripts: https://github.com/warrior0x7/xlotus