EmmyLua/Intellij-EmmyLua2

Request: Ability to add Custom LUA SDK

Closed this issue · 6 comments

image

When using the other EmmyLua i could add SDK's, which i would prefer to do since i need it for my FiveM natives classnames, but the other version doesn't support the LUA Version FiveM uses and this does.

If you are using FiveM, its syntax differs from standard Lua. EmmyLua does not support non-standard Lua syntax, so it is better to use Sumneko Lua.

Sumneko Lua Doesn't support adding SDK's in Intellij, so the only way i found around that is to just grab all of the natives definitions and add them locally to the folder so it loads them.

You can do the same thing in EmmyLua2 and that's working well for me, i was just wondering if i could just use the SDK as that was allot better.

Also EmmyLua2 seems to be working quite well, it detects the modules which the other version didn't.

also when i do

local functionName = function()

end

the other EmmyLua didn't support that but this one does.

image

So adding the FiveM natives/funcs in the definitions folder works but it's not the best solution.

But i'm going to look into the link that you sent me.

you can just set this in .emmyrc.json :

{
    "workspace" : {
        "library": "path/to/sdk"
    }
}

Yeah that's what i just did, thank you once again and i really appreciate it!