summaryrefslogtreecommitdiff
path: root/meta/3rd/example/config.lua
blob: 17b6ab067a1e39436874a4613056ceaee59d2b0d (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
    configs[#configs+1] = {
        name  = 'Lua.diagnostics.globals',
        type  = 'add',
        value = name,
    }
end