This plugin enables auto-complete functionality for functions of the LÖVE-framework while using Lua for IntelliJ Idea.
The plugin is auto-generated from the LÖVE-API-Documentation.
Download and instructions on github.
LÖVE-IDEA-Plugin (LÖVE Plugin for IntelliJ Idea)
Re: LOVE-IDEA-API (LÖVE API for IntelliJ Idea)
There's the LÖVE API in Lua table here: http://santos.nfshost.com/love_api.lua
With it you could automatically create files with something like this:
I'm not sure how the API files for IntelliJ IDEA work, but you might be able to modify the code above to add parameters, descriptions, and object methods.
With it you could automatically create files with something like this:
Code: Select all
api = require('love_api')
love.filesystem.append('love.lua', "module('love')\r\n")
for i, f in ipairs(api.callbacks) do
love.filesystem.append('love.lua', 'function '..f.name..'() end\r\n')
end
for i, f in ipairs(api.functions) do
love.filesystem.append('love.lua', 'function '..f.name..'() end\r\n')
end
for i, m in ipairs(api.modules) do
love.filesystem.append(m.name..'.lua', "module('love."..m.name.."')\r\n")
for ii, f in ipairs(m.functions) do
love.filesystem.append(m.name..'.lua', 'function '..f.name..'() end\r\n')
end
end
Re: LOVE-IDEA-API (LÖVE API for IntelliJ Idea)
If this works...I think I might love you. (no pun intended)rmcode wrote:I've been using IntelliJ Idea to code in Lua for a long time. Somewhere along the way I created my own API to have auto-complete functionality for all LÖVE functions.
Re: LOVE-IDEA-API (LÖVE API for IntelliJ Idea)
Afaik there is a way to have docs too ... but I couldn't get it to work last time I tried. I'll give it another shot!Santos wrote:I'm not sure how the API files for IntelliJ IDEA work, but you might be able to modify the code above to add parameters, descriptions, and object methods.
It works here If you have troubles setting it up just ping me and I'll try to post some clearer instructions.FryDay444 wrote:If this works...I think I might love you. (no pun intended)rmcode wrote:I've been using IntelliJ Idea to code in Lua for a long time. Somewhere along the way I created my own API to have auto-complete functionality for all LÖVE functions.
Re: LOVE-IDEA-API (LÖVE API for IntelliJ Idea)
Pushed a new update. (Re-)Generated the API with the help of the love api and the code Santos posted above.
Re: LOVE-IDEA-API (LÖVE API for IntelliJ Idea)
Haven't had a chance to test this yet, but it doesn't appear like your API shows arguments, does it? If not, any chance of implementing it?rmcode wrote:Pushed a new update. (Re-)Generated the API with the help of the love api and the code Santos posted above.
Re: LOVE-IDEA-API (LÖVE API for IntelliJ Idea)
I played around with the custom documentation feature of the lua plugin, but it seems like it is broken - I can't get it to work properly at least.FryDay444 wrote:Haven't had a chance to test this yet, but it doesn't appear like your API shows arguments, does it? If not, any chance of implementing it?
The maintainer of the API seems to be pretty busy so I'm not sure if it'll ever be fixed
Re: LOVE-IDEA-API (LÖVE API for IntelliJ Idea)
Just a quick heads up that the plugin doesn't work (correctly) under IntelliJ Idea 14. So until the author decides to update I recommend using IntelliJ Idea 13.1.6.
Re: LÖVE-IDEA-Plugin (LÖVE Plugin for IntelliJ Idea)
Pushed a minor update adding some previously missing functions.
Code: Select all
- Update love.filesystem module in 0.9.2 plugin.
Who is online
Users browsing this forum: Google [Bot], SiENcE and 10 guests