-
I'm trying to get the definitions working for Cuberite, a custom Minecraft server written in C++ with plugins written in Lua. We've got all our documentation saved in a large Lua file which we use to generate our documentation, but also definition files for IDE's like ZeroBraneStudio. Generating the library files for lua-language-server wasn't that hard, but it seems it only uses the library files if you're using |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I believe you are looking for https://github.com/LuaLS/lua-language-server/wiki/Libraries |
Beta Was this translation helpful? Give feedback.
-
I just found out what it was. I was copying the same format of some other libraries like md5 and luasocket. There they made a local table, put the methods in and then returned that table which makes sense if you're using require. I just needed to make the table global to make lua-language-server automatically find Cuberites classes. |
Beta Was this translation helpful? Give feedback.
I just found out what it was. I was copying the same format of some other libraries like md5 and luasocket. There they made a local table, put the methods in and then returned that table which makes sense if you're using require. I just needed to make the table global to make lua-language-server automatically find Cuberites classes.