summaryrefslogtreecommitdiff
path: root/meta/3rd/example
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-23 19:52:57 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-23 19:52:57 +0800
commitd86c2c46e8985da8899ae77d4c6f54f5b902cd71 (patch)
tree7d4adab36450f59cd3e9456086614120176731fc /meta/3rd/example
parentb18329cea47f2de9c50abefecaccf248c16aa398 (diff)
downloadlua-language-server-d86c2c46e8985da8899ae77d4c6f54f5b902cd71.zip
change `config.lua` to `config,json`
#1607
Diffstat (limited to 'meta/3rd/example')
-rw-r--r--meta/3rd/example/config.json22
-rw-r--r--meta/3rd/example/config.lua20
2 files changed, 22 insertions, 20 deletions
diff --git a/meta/3rd/example/config.json b/meta/3rd/example/config.json
new file mode 100644
index 00000000..415b92b2
--- /dev/null
+++ b/meta/3rd/example/config.json
@@ -0,0 +1,22 @@
+{
+ // 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
+ "config" : {
+ "Lua.runtime.version" : "LuaJIT",
+ "Lua.diagnostics.globals" : [
+ "global1",
+ "global2"
+ ],
+ "Lua.runtime.special" : {
+ "include" : "require"
+ },
+ "Lua.runtime.builtin" : {
+ "io" : "disable"
+ }
+ }
+}
diff --git a/meta/3rd/example/config.lua b/meta/3rd/example/config.lua
deleted file mode 100644
index 20bae0f3..00000000
--- a/meta/3rd/example/config.lua
+++ /dev/null
@@ -1,20 +0,0 @@
--- 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
-config = {
- ["Lua.runtime.version"] = "LuaJIT",
- ["Lua.diagnostics.globals"] = {
- "global1",
- "global2",
- },
- ["Lua.runtime.special"] = {
- ["include"] = "require",
- },
- ["Lua.runtime.builtin"] = {
- ["io"] = "disable",
- },
-}