blob: 7b964d547c637daf144d77a32f136fac1bfe1c38 (
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 = {
{
name = 'Lua.runtime.version',
type = 'set',
value = 'LuaJIT',
},
{
name = 'Lua.diagnostics.globals',
type = 'add',
value = 'global1',
}
}
for _, name in ipairs {'global2', 'global3', 'global4'} do
config[#config+1] = {
name = 'Lua.diagnostics.globals',
type = 'add',
value = name,
}
end
|