dapetcu21 / atom-autocomplete-lua

Extensible autocomplete+ provider for Lua
35 stars 6 forks source link

[Request] Require files in .luacompleterc #29

Closed nbredikhin closed 11 months ago

nbredikhin commented 5 years ago

Hello,

There are Lua environments that doesn't support require (for example Multi Theft Auto: San Andreas or FiveM)

It often uses some external config file to specify list of Lua scripts to be executed. For example, in MTA:SA you have an xml file like this:

<script src="file1.lua"/>
<script src="file2.lua/>

And you can only access things between files using global variables. The problem is that I can't include multiple files in .luacompleterc so it can autocomplete global functions and variables defined in different files.

Is it possible to add something like "requireFiles": [ "./file1.lua", "./file2.lua" ] to .luacompleterc?

Thanks.