How can I setup pandoc to work with lua language server?

notTheCat@lemmy.ml to Programming@programming.dev – 13 points –

I want to use Lua filters in Pandoc but the LSP keeps complaining about not finding pandoc module in globals, I don't have a pandoc-lua executable on my system, only pandoc-cli, and there's no such thing in my package manager either, I've tried pointing workspace.library to pandoc-cli but it didn't work, I'm a Lua noob too, and I'm on Arch, I'm fine if I have to compile Pandoc myself if that solves the problem

4

No idea about the LSP issues but I've compiled pandoc. That's an adventure in it's own right because of the dependencies it brings in. I guess do it if you have to, but maybe in a scratch vm that you can simply delete when you're done.

If it's too much of struggle to compile it I'd rather be sure first that it will do help me with setting up the LSP