![Image](https://raw.githubusercontent.com/rm-code/love-IDEA-plugin/master/screenshots/preview.png)
The plugin is auto-generated from the LÖVE-API-Documentation.
Download and instructions on github.
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
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.
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 hereFryDay444 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.
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.
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?
Code: Select all
- Update love.filesystem module in 0.9.2 plugin.
Users browsing this forum: No registered users and 4 guests