Here's some details on how to setup what you can see at the bottom of this post
Basically, you can do either :
This (longer but it will make seperate SDKs for normal computer Lua and Nspire Lua)
- Download Lua for windows 5.1
- Add a new Lua SDK in Intellij (you can find that in the module settings, for example)
- Select the Lua folder in program files as the lua sdk folder.
- Download my addon and decompress it somewhere
- Add from my addon the folder "nspirelua-api" as an external classpath folder in your new SDK
- Save, apply, etc.
or (easier/faster but it will make computer lua think it has nspire lua API available) :
- In Intellij's ( / module's ) settings, edit the KahLua SDK
- Download my addon and decompress it somewhere
- Add from my addon the folder "nspirelua-api" as an external classpath folder in your new SDK
- Save, apply, etc.
After all that, create a new Lua project, and in the libraries on the left side, you should see not only the stdlib (of which you can unlink the io and debug API which aren't present on the Nspire), and you should be able to enjoy Intellij's Lua plugin things but for the Nspire Lua API too.
This it what it looks like when it's set up, on my computer :
Autocompletion example (of the events and other functions ) :
Auto-completion + arguments help :
Interactive documentation based onInspired-Lua's wiki : (Ctrl-Q on a word)
Nspire-Lua API plugin : download here (archives_voir.php?id=8182)
Good luck and have fun