Sublime Forum

Undefined globals - how to get .lua file act like in project" / lib


Hi all.

I’m using LSP with the lua plugin as language server for lua. Its not the problem, but maybe part of the solution.

In larger lua projects I (re)use “libs” from different file locations ( global functions, Tables… )
My problem is, that LSP/Sublime don’t include these files. This means no References, Definitions … All there is left are a lot of “undefined globals” error messages.

Is there a way to tell Sublime / LSP to act like the “libs” are in the same folder?