summaryrefslogtreecommitdiff
path: root/script/config.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-03-15 20:46:58 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-03-15 20:46:58 +0800
commitb552559036d6a635d51ea27da0b59fa9150ac27f (patch)
treeabf10867b13b3198eaae148176e5637f3da8d9f3 /script/config.lua
parenta508e59114168f89d48b16a9c9c1da9c14df7802 (diff)
downloadlua-language-server-b552559036d6a635d51ea27da0b59fa9150ac27f.zip
new setting `Lua.runtime.builtin`
Diffstat (limited to 'script/config.lua')
-rw-r--r--script/config.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/script/config.lua b/script/config.lua
index 18525c13..e34b1ca4 100644
--- a/script/config.lua
+++ b/script/config.lua
@@ -126,6 +126,23 @@ local ConfigTemplate = {
nonstandardSymbol = {{}, Str2Hash ';'},
plugin = {'.vscode/lua/plugin.lua', String},
fileEncoding = {'utf8', String},
+ builtin = {{
+ ['basic'] = 'enable',
+ ['bit'] = 'enable',
+ ['bit32'] = 'enable',
+ ['builtin'] = 'enable',
+ ['coroutine'] = 'enable',
+ ['debug'] = 'enable',
+ ['ffi'] = 'enable',
+ ['io'] = 'enable',
+ ['jit'] = 'enable',
+ ['math'] = 'enable',
+ ['os'] = 'enable',
+ ['package'] = 'enable',
+ ['string'] = 'enable',
+ ['table'] = 'enable',
+ ['utf8'] = 'enable',
+ }, Hash(String, String)},
},
diagnostics = {
enable = {true, Boolean},