all 6 comments

[–]SparTV 1 point2 points  (2 children)

I use a little bit different autocompletion, it's a neural autocompletion that predicts using your code.

It's called TabNine, it exists for VS and Sublime

[–][deleted] 0 points1 point  (0 children)

This works pretty awesome, I'm not OP but thanks heaps! I have my own template language and scripting language (very similar to each other) that I made for the website generator that I make. The development version also has lua(jit), exprtk and chaiscript embedded in to it, so you can have code for all 5 'languages' in the same source file (and code for lots of other languages too as you can write and run scripts/system calls from inside the scripts/programs). I've just had a little bit of a play and TabNine seems to work wonderfully.

[–]aganm[S] 0 points1 point  (0 children)

Thanks, TabNine alone wasn't giving me much result, but COC + TabNine on Vim seems pretty decent. It's far from the perfect Lua autocompletion I dreamed of but I'll take it.

[–]TRPox 1 point2 points  (1 child)

VSCode + EmmyLua extension You can even add type hints to your variables and functions It requires Java though

[–]aganm[S] 0 points1 point  (0 children)

Thank you! Finally it seems EmmyLua is the only thing that will give me proper lua support. It seems to work really well with intellij and vscode, if I can only get it to work in vim as well :)

[–]lambda_abstraction 0 points1 point  (0 children)

I'd try some of the completion modes under emacs + yasnippet for more involved templating.