company-lua icon indicating copy to clipboard operation
company-lua copied to clipboard

Add Torch support.

Open se4u opened this issue 7 years ago • 2 comments

Torch is a neural network library built using lua which is heavily used in machine learning community. This PR adds partial support for torch's neural network api to the company-lua backend as this screenshot shows.

image

se4u avatar Jul 04 '17 08:07 se4u

Tanks for the PR!

In think there needs to be a new interpreter torch, so we don't include the torch completion when not using torch.

Please add torch to company-lua-interpreter as option and in lua/complete.lua, instead of adding torch and nn to the basic apis add another check for the case interpreter == "torch" and insert the two sources only in that case.

ptrv avatar Jul 04 '17 12:07 ptrv

I added the torch interpreter.

se4u avatar Jul 04 '17 23:07 se4u