summaryrefslogtreecommitdiff
path: root/script/config.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-05 17:15:05 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-05 17:15:05 +0800
commitcb30a8f68bb18e210a2a2853aaaa583507bdf1b8 (patch)
tree21899cc66fd5375cfe0d38dcb4030bc64c8ea3ba /script/config.lua
parentdbb99f3919751bea59e8ffffcda9bb968c74a8f5 (diff)
downloadlua-language-server-cb30a8f68bb18e210a2a2853aaaa583507bdf1b8.zip
性能相关的选项
Diffstat (limited to 'script/config.lua')
-rw-r--r--script/config.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/script/config.lua b/script/config.lua
index f54bc5bc..8ad53b41 100644
--- a/script/config.lua
+++ b/script/config.lua
@@ -105,7 +105,7 @@ local ConfigTemplate = {
globals = {{}, Str2Hash ';'},
disable = {{}, Str2Hash ';'},
severity = {
- table.deepCopy(DiagnosticDefaultSeverity),
+ util.deepCopy(define.DiagnosticDefaultSeverity),
Hash(String, String),
},
workspaceDelay = {0, Integer},
@@ -127,6 +127,7 @@ local ConfigTemplate = {
callSnippet = {'Disable', String},
keywordSnippet = {'Replace', String},
displayContext = {6, Integer},
+ fastGlobal = {true, Boolean},
},
signatureHelp = {
enable = {true, Boolean},
@@ -136,14 +137,21 @@ local ConfigTemplate = {
viewString = {true, Boolean},
viewStringMax = {1000, Integer},
viewNumber = {true, Boolean},
+ fieldInfer = {3000, Integer},
},
color = {
mode = {'Semantic', String},
},
+ luadoc = {
+ enable = {true, Boolean},
+ },
plugin = {
enable = {false, Boolean},
path = {'.vscode/lua-plugin/*.lua', String},
},
+ intelliSense = {
+ searchDepth = {0, Integer},
+ },
}
local OtherTemplate = {