- schema.json
- trigger completion in coc-settings
- type:
boolean
- default:
true
- description: Enable coc-sumneko-lua extension
- type:
boolean
- default:
true
- description: Prompt when server is not found or when server can be updated
- type:
string
- default:
"en-us"
- description: The localized language used
- type:
string
- default:
""
- description: The log path
- type:
boolean
- default:
false
- description: Enable the nvim lua development
- type:
boolean
- default:
true
- description: Automatically check for updates after startup(Only one check within 4 hours)
- type:
string
- default:
null
- description: The server directory which contains: bin/, changelog.md, debugger.lua, locale/, main.lua, meta/, script/. Download and set by default
- type:
boolean
- default:
true
- description: Whether the addon manager is enabled or not.
- type:
boolean
- default:
false
- description: Enable code lens.
- type:
boolean
- default:
true
- description: When the input looks like a file name, automatically
require
this file.
- type:
string
- default:
"Disable"
- description: Shows function call snippets.
- type:
integer
- default:
0
- description: Previewing the relevant code snippet of the suggestion may help you understand the usage of the suggestion. The number set indicates the number of intercepted lines in the code fragment. If it is set to
0
, this feature can be disabled.
- type:
boolean
- default:
true
- description: Enable completion.
- type:
string
- default:
"Replace"
- description: Shows keyword syntax snippets.
- type:
string
- default:
"@"
- description: The symbol used to trigger the postfix suggestion.
- type:
string
- default:
"."
- description: The separator used when
require
.
- type:
boolean
- default:
true
- description: Display parameters in completion list. When the function has multiple definitions, they will be displayed separately.
- type:
string
- default:
"Fallback"
- description: Show contextual words in suggestions.
- type:
boolean
- default:
true
- description: Whether the displayed context word contains the content of other files in the workspace.
- type:
array
- default:
[]
- description: Disabled diagnostic (Use code in hover brackets).
- type:
array
- default:
["git"]
- description: Do not diagnose Lua files that use the following scheme.
- type:
boolean
- default:
true
- description: Enable diagnostics.
- type:
array
- default:
[]
- description: Defined global variables.
- type:
object
- default:
undefined
- description: Modify the diagnostic needed file status in a group.
- Opened: only diagnose opened files
- Any: diagnose all files
- None: disable this diagnostic
Fallback
means that diagnostics in this group are controlled by diagnostics.neededFileStatus
separately.
Other settings will override individual settings without end of !
.
- type:
object
- default:
undefined
- description: Modify the diagnostic severity in a group.
Fallback
means that diagnostics in this group are controlled bydiagnostics.severity
separately. Other settings will override individual settings without end of!
.
- type:
string
- default:
"Opened"
- description: How to diagnose ignored files.
- type:
string
- default:
"Opened"
- description: How to diagnose files loaded via
Lua.workspace.library
.
- type:
object
- default:
undefined
- description: * Opened: only diagnose opened files
- Any: diagnose all files
- None: disable this diagnostic
End with !
means override the group setting diagnostics.groupFileStatus
.
- type:
object
- default:
undefined
- description: Modify the diagnostic severity.
End with !
means override the group setting diagnostics.groupSeverity
.
- type:
array
- default:
[]
- description: Do not diagnose
unused-local
when the variable name matches the following pattern.
- type:
integer
- default:
3000
- description: Latency (milliseconds) for workspace diagnostics.
- type:
string
- default:
"OnSave"
- description: Set the time to trigger workspace diagnostics.
- type:
integer
- default:
100
- description: Workspace diagnostics run rate (%). Decreasing this value reduces CPU usage, but also reduces the speed of workspace diagnostics. The diagnosis of the file you are currently editing is always done at full speed and is not affected by this setting.
- type:
array
- default:
[]
- description: Treat specific field names as package, e.g.
m_*
meansXXX.m_id
andXXX.m_type
are package, witch can only be accessed in the file where the definition is located.
- type:
array
- default:
[]
- description: Treat specific field names as private, e.g.
m_*
meansXXX.m_id
andXXX.m_type
are private, witch can only be accessed in the class where the definition is located.
- type:
array
- default:
[]
- description: Treat specific field names as protected, e.g.
m_*
meansXXX.m_id
andXXX.m_type
are protected, witch can only be accessed in the class where the definition is located and its subclasses.
- type:
object
- default:
{}
- description: The default format configuration. Has a lower priority than
.editorconfig
file in the workspace. Read formatter docs to learn usage.
- type:
boolean
- default:
true
- description: Enable code formatter.
- type:
string
- default:
"Auto"
- description: Show hints of array index when constructing a table.
- type:
boolean
- default:
true
- description: If the called function is marked
---@async
, promptawait
at the call.
- type:
boolean
- default:
true
- description: Enable inlay hint.
- type:
string
- default:
"All"
- description: Show hints of parameter name at the function call.
- type:
boolean
- default:
true
- description: Show type hints at the parameter of the function.
- type:
string
- default:
"SameLine"
- description: If there is no semicolon at the end of the statement, display a virtual semicolon.
- type:
boolean
- default:
false
- description: Show hints of type at assignment operation.
- type:
boolean
- default:
true
- description: Enable hover.
- type:
integer
- default:
5
- description: When the value corresponds to multiple types, limit the number of types displaying.
- type:
boolean
- default:
true
- description: Whether to expand the alias. For example, expands
---@alias myType boolean|number
appears asboolean|number
, otherwise it appears as `myType'.
- type:
integer
- default:
50
- description: When hovering to view a table, limits the maximum number of previews for fields.
- type:
boolean
- default:
true
- description: Hover to view numeric content (only if literal is not decimal).
- type:
boolean
- default:
true
- description: Hover to view the contents of a string (only if the literal contains an escape character).
- type:
integer
- default:
1000
- description: The maximum length of a hover to view the contents of a string.
- type:
string
- default:
""
- description: Specify the executable path.
- type:
array
- default:
[]
- description: Additional command line parameters when starting the language service.
- type:
object
- default:
{}
- description: Set name style config
- type:
object
- default:
undefined
- description: Adjust the enabled state of the built-in library. You can disable (or redefine) the non-existent library according to the actual runtime environment.
default
: Indicates that the library will be enabled or disabled according to the runtime versionenable
: always enabledisable
: always disable
- type:
string
- default:
"utf8"
- description: File encoding. The
ansi
option is only available under theWindows
platform.
- type:
string
- default:
"${version} ${language} ${encoding}"
- description: Format of the directory name of the meta files.
- type:
array
- default:
[]
- description: Supports non-standard symbols. Make sure that your runtime environment supports these symbols.
- type:
array
- default:
["?.lua","?/init.lua"]
- description: When using
require
, how to find the file based on the input name. Setting this config to?/init.lua
means that when you enterrequire 'myfile'
,${workspace}/myfile/init.lua
will be searched from the loaded files. ifruntime.pathStrict
isfalse
,${workspace}/**/myfile/init.lua
will also be searched. If you want to load files outside the workspace, you need to setLua.workspace.library
first.
- type:
boolean
- default:
false
- description: When enabled,
runtime.path
will only search the first level of directories, see the description ofruntime.path
.
- type:
string
- default:
""
- description: Plugin path. Please read wiki to learn more.
- type:
array
- default:
[]
- description: Additional arguments for the plugin.
- type:
object
- default:
{}
- description: The custom global variables are regarded as some special built-in variables, and the language server will provide special support The following example shows that 'include' is treated as' require '.
"Lua.runtime.special" : {
"include" : "require"
}
- type:
boolean
- default:
false
- description: Allows Unicode characters in name.
- type:
string
- default:
"Lua 5.4"
- description: Lua runtime version.
- type:
boolean
- default:
true
- description: Semantic coloring of type annotations.
- type:
boolean
- default:
true
- description: Enable semantic color. You may need to set
editor.semanticHighlighting.enabled
totrue
to take effect.
- type:
boolean
- default:
false
- description: Semantic coloring of keywords/literals/operators. You only need to enable this feature if your editor cannot do syntax coloring.
- type:
boolean
- default:
true
- description: Semantic coloring of variables/fields/parameters.
- type:
boolean
- default:
true
- description: Enable signature help.
- type:
array
- default:
[]
- description: Custom words for spell checking.
- type:
boolean
- default:
true
- description: Allowed to assign the
number
type to theinteger
type.
- type:
boolean
- default:
false
- description: When checking the type of union type, ignore the
nil
in it.
When this setting is false
, the number|nil
type cannot be assigned to the number
type. It can be with true
.
- type:
boolean
- default:
false
- description: Once one subtype of a union type meets the condition, the union type also meets the condition.
When this setting is false
, the number|boolean
type cannot be assigned to the number
type. It can be with true
.
- type:
object
- default:
undefined
- description: Configures the formatting behavior while typing Lua code.
- type:
boolean
- default:
true
- description: Show progress bar in status bar.
- type:
boolean
- default:
true
- description: Show extension status in status bar.
- type:
string,boolean
- default:
undefined
- description: Automatic detection and adaptation of third-party libraries, currently supported libraries are:
- OpenResty
- Cocos4.0
- LÖVE
- LÖVR
- skynet
- Jass
- type:
array
- default:
[".vscode"]
- description: Ignored files and directories (Use
.gitignore
grammar).
- type:
boolean
- default:
true
- description: Ignore submodules.
- type:
array
- default:
[]
- description: In addition to the current workspace, which directories will load files from. The files in these directories will be treated as externally provided code libraries, and some features (such as renaming fields) will not modify these files.
- type:
integer
- default:
5000
- description: Max preloaded files.
- type:
integer
- default:
500
- description: Skip files larger than this value (KB) when preloading.
- type:
boolean
- default:
true
- description: Ignore files list in
.gitignore
.
- type:
array
- default:
[]
- description: Add private third-party library configuration file paths here, please refer to the built-in configuration file path