diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-08 15:49:10 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-08 15:49:10 +0800 |
commit | 4876958951dff23ed234523d89b47a854e88acea (patch) | |
tree | 5166c29516c525de2d69d8ff03a2c40bc5e0ec99 /meta/3rd | |
parent | 9c21a7a38a6b3f79f8d74cf9ce45ecb431c8ef9a (diff) | |
download | lua-language-server-4876958951dff23ed234523d89b47a854e88acea.zip |
also supports filename
Diffstat (limited to 'meta/3rd')
-rw-r--r-- | meta/3rd/OpenResty/config.lua | 24 | ||||
-rw-r--r-- | meta/3rd/example/config.lua | 4 |
2 files changed, 26 insertions, 2 deletions
diff --git a/meta/3rd/OpenResty/config.lua b/meta/3rd/OpenResty/config.lua new file mode 100644 index 00000000..6cf1d8df --- /dev/null +++ b/meta/3rd/OpenResty/config.lua @@ -0,0 +1,24 @@ +-- list of matched words +words = {} +-- list or matched file names +files = {} +-- 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 diff --git a/meta/3rd/example/config.lua b/meta/3rd/example/config.lua index 7bf8e04a..d19edd66 100644 --- a/meta/3rd/example/config.lua +++ b/meta/3rd/example/config.lua @@ -1,7 +1,7 @@ -- list of matched words words = {'thisIsAnExampleWord%.ifItExistsInFile%.thenTryLoadThisLibrary'} --- list or matched file names -files = {'thisIsAnExampleFile%.ifItExistsInWorkSpace%.thenTryLoadThisLibrary'} +-- list or matched file names. `.lua`, `.dll` and `.so` only +files = {'thisIsAnExampleFile%.ifItExistsInWorkSpace%.thenTryLoadThisLibrary%.lua'} -- lsit of settings to be changed configs = { { |