blob: 7bf8e04acec6bbbed37baf2e0fef6a90533cd774 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
-- list of matched words
words = {'thisIsAnExampleWord%.ifItExistsInFile%.thenTryLoadThisLibrary'}
-- list or matched file names
files = {'thisIsAnExampleFile%.ifItExistsInWorkSpace%.thenTryLoadThisLibrary'}
-- lsit of settings to be changed
configs = {
{
key = 'Lua.runtime.version',
action = 'set',
value = 'LuaJIT',
},
{
key = 'Lua.diagnostics.globals',
action = 'add',
value = 'global1',
}
}
for _, name in ipairs {'global2', 'global3', 'global4'} do
configs[#configs+1] = {
key = 'Lua.diagnostics.globals',
action = 'add',
value = name,
}
end
|