diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-08 17:23:15 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-08 17:23:15 +0800 |
commit | 5241f282f8c61e9ab012335119c47f032d6bc616 (patch) | |
tree | 4e1f23ccd8078c164c8ce9c83b74ccf200ed4489 /script/config/template.lua | |
parent | a73b2d1ab864642d70c3676769e1faf1369daad8 (diff) | |
download | lua-language-server-5241f282f8c61e9ab012335119c47f032d6bc616.zip |
update config
Diffstat (limited to 'script/config/template.lua')
-rw-r--r-- | script/config/template.lua | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/script/config/template.lua b/script/config/template.lua index 4be798ef..d22679a2 100644 --- a/script/config/template.lua +++ b/script/config/template.lua @@ -196,7 +196,13 @@ local template = { ), ['Lua.runtime.meta'] = Type.String >> '${version} ${language} ${encoding}', ['Lua.runtime.unicodeName'] = Type.Boolean, - ['Lua.runtime.nonstandardSymbol'] = Type.Array(Type.String), + ['Lua.runtime.nonstandardSymbol'] = Type.Array(Type.String << { + '//', '/**/', + '`', + '+=', '-=', '*=', '/=', + '||', '&&', '!', '!=', + 'continue', + }), ['Lua.runtime.plugin'] = Type.String, ['Lua.runtime.fileEncoding'] = Type.String >> 'utf8' << { 'utf8', @@ -232,10 +238,12 @@ local template = { 'Opened', 'Disable', }, - ['Lua.workspace.ignoreDir'] = Type.Array(Type.String), + ['Lua.workspace.ignoreDir'] = Type.Array(Type.String) >> { + '.vscode', + }, ['Lua.workspace.ignoreSubmodules'] = Type.Boolean >> true, ['Lua.workspace.useGitIgnore'] = Type.Boolean >> true, - ['Lua.workspace.maxPreload'] = Type.Integer >> 3000, + ['Lua.workspace.maxPreload'] = Type.Integer >> 5000, ['Lua.workspace.preloadFileSize'] = Type.Integer >> 500, ['Lua.workspace.library'] = Type.Array(Type.String), ['Lua.workspace.checkThirdParty'] = Type.Boolean >> true, |