summaryrefslogtreecommitdiff
path: root/meta/3rd/OpenResty
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-08 15:49:10 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-08 15:49:10 +0800
commit4876958951dff23ed234523d89b47a854e88acea (patch)
tree5166c29516c525de2d69d8ff03a2c40bc5e0ec99 /meta/3rd/OpenResty
parent9c21a7a38a6b3f79f8d74cf9ce45ecb431c8ef9a (diff)
downloadlua-language-server-4876958951dff23ed234523d89b47a854e88acea.zip
also supports filename
Diffstat (limited to 'meta/3rd/OpenResty')
-rw-r--r--meta/3rd/OpenResty/config.lua24
1 files changed, 24 insertions, 0 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