this post was submitted on 19 Mar 2024
13 points (93.3% liked)

Programming

17373 readers
238 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
 

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

top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 7 months ago (1 children)

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.

[–] [email protected] 2 points 7 months ago

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

[–] [email protected] 1 points 7 months ago (1 children)

It seems that no lua is packaged with pandoc-cli (By looking at the package contents of https://archlinux.org/packages/extra/x86_64/pandoc-cli/)

So if I were you I would first try the AUR and see if there's any package there that does.

[–] [email protected] 1 points 7 months ago

Just checked the AUR, it doesn't have a build with a separate pandoc-lua