lua-lsp
lua-lsp copied to clipboard
external typing
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
generated this test case https://github.com/Alloyed/imgui-bindings/blob/alloyed/src/lua-bindings/autocomplete.json