minetest_x_bows/bin/lua-language-server-3.5.6-l.../meta/3rd/example/config.lua

39 lines
1.0 KiB
Lua
Raw Normal View History

2022-11-03 10:37:33 -05:00
-- if not set, the folder name will be used
name = 'Example'
-- list of matched words
words = {'thisIsAnExampleWord%.ifItExistsInFile%.thenTryLoadThisLibrary'}
-- list or matched file names. `.lua`, `.dll` and `.so` only
files = {'thisIsAnExampleFile%.ifItExistsInWorkSpace%.thenTryLoadThisLibrary%.lua'}
-- lsit of settings to be changed
configs = {
{
key = 'Lua.runtime.version',
action = 'set',
value = 'LuaJIT',
},
{
key = 'Lua.diagnostics.globals',
action = 'add',
value = 'global1',
},
{
key = 'Lua.runtime.special',
action = 'prop',
prop = 'include',
value = 'require',
},
{
key = 'Lua.runtime.builtin',
action = 'prop',
prop = 'io',
value = 'disable',
},
}
for _, name in ipairs {'global2', 'global3', 'global4'} do
configs[#configs+1] = {
key = 'Lua.diagnostics.globals',
action = 'add',
value = name,
}
end