Type annotations for VSCode or VSCodium and Lua Language Server #9620
massifrg
started this conversation in
Show and tell
Replies: 1 comment
-
Those annotations are now in a repository: pandoc-luals-annotations. It should be complete (and almost correct, I hope). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I write my Lua filters and custom readers/writers for Pandoc with VSCodium and Lua Language Server (LuaLS).
LuaLS complains about the global variables like
pandoc
orFORMAT
, so you may add a.luarc.json
file like this in the base directory of your project:I also wrote a file with type annotations that may be useful while developing with Lua for Pandoc. Here's the link to the file inside a project of mine.
Just copy that file among your sources and add a line like this:
---@module "pandoc-types-annotations"
to get the type definitions for
Inline
,Block
,Div
, etc.If you find mistakes, typos or have suggestions to make those annotations better, just let me know.
Beta Was this translation helpful? Give feedback.
All reactions