Alloyed / lua-lsp

A Lua language server
MIT License
288 stars 21 forks source link

external typing #10

Open Alloyed opened 6 years ago

Alloyed commented 6 years ago

Native modules can't be easily parsed the way lua can: for one we might not even have the source. So it makes sense to provide a .luacompleterc-inspired format that can either be hand-made or generated, and then can be loaded when a user tries to use this kind of a module. imagined filesystem structure

: share/lua/5.1/dir/my_module.lua
: share/lua/5.1/dir/my_module.luacmp.json
: share/lua/5.1/native_module.luacmp.json
: lib/lua/5.1/native_module.so
Alloyed commented 4 years ago

generated this test case https://github.com/Alloyed/imgui-bindings/blob/alloyed/src/lua-bindings/autocomplete.json