ZAutoComplete: Autocomplete generator for ZeroBrane and Atom

Post Reply
twahm
Member
Posts: 14
Joined: Tue Sep 12, 2017 18:11
GitHub: twahm
IRC: twahm

ZAutoComplete: Autocomplete generator for ZeroBrane and Atom

by twahm » Post

ZAutoComplete generates files that allow the supported ides to autocomplete the lua files for mods as you type.

Instructions for use:

For ZeroBrane:
1. Download and unzip minetest_api_0.4.16.zip
2. Copy zerobrane_mods and zerobrane_csm to ZeroBrane_root_path/api/lua and and add them the extension .lua
3. Open ZeroBrane and go to Preferences->Settings: System
4. Add this to the file that was opened: api={'zerobrane_mods', 'zerobrane_csm'}

For Atom:
1. Install autocomplete-lua package on Atom
2. Download and unzip minetest_api_0.4.16.zip
3. Copy atom_mods or atom_csm to the mod project root path and rename it as .luacompleterc
Note: For some reason that I do not know you have to keep open .luacompleterc and interpreted as json so that it works

Generator github repository: https://github.com/twahm/ZAutoComplete
Attachments
minetest_api_0.4.16.zip
(58.61 KiB) Downloaded 59 times
Last edited by twahm on Fri Dec 29, 2017 02:09, edited 2 times in total.

twahm
Member
Posts: 14
Joined: Tue Sep 12, 2017 18:11
GitHub: twahm
IRC: twahm

Re: ZAutoComplete: Autocomplete generator for ZeroBrane and

by twahm » Post

I add support for Atom

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: ZAutoComplete: Autocomplete generator for ZeroBrane and

by texmex » Post

Thanks, I use Atom!

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: ZAutoComplete: Autocomplete generator for ZeroBrane and

by texmex » Post

I don't see this working at all for Atom. I think by keeping the file open, Atom simply suggests from what it normally would by looking into the other open files.

Image

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest