You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://github.com/sumneko/lua-language-server/issues"Average time to resolve an issue")
The Lua language server provides various language features for Lua to make development easier and faster. With around half a million installs on Visual Studio Code, it is the most popular extension for Lua language support.
The language server can easily be installed for use in VS Code, but it can also be used by other clients using the command line.
40
33
41
-
-[x] Lua 5.1
42
-
-[x] Lua 5.2
43
-
-[x] Lua 5.3
44
-
-[x] Lua 5.4
45
-
-[x] LuaJIT
34
+
### Visual Studio Code
35
+
[](https://marketplace.visualstudio.com/items?itemName=sumneko.lua)
46
36
47
-
If you find any mistakes, please [tell me][issues] or use [Pull Requests][@meta] to fix them directly.
37
+
The language server and Visual Studio Code client can be installed from [the VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=sumneko.lua).
[](https://github.com/sumneko/lua-language-server/wiki/Getting-Started#command-line)
43
+
44
+
Check the [wiki for a guide](https://github.com/sumneko/lua-language-server/wiki/Getting-Started#command-line) to install the language server for use on the command line. This allows the language server to be used for NeoVim and other clients that follow the language server protocol.
Please [help me][en-US] improve the quality of `en-US`.
78
+
> ℹ Note: All translations are provided and collaborated on by the community. If you find an inappropriate or harmful translation, [please report it immediately](https://github.com/sumneko/lua-language-server/issues).
79
+
80
+
Are you able to [provide a translation](https://github.com/sumneko/lua-language-server/wiki/Translations)? It would be greatly appreciated!
81
+
82
+
Thank you to [all contributors of translations](https://github.com/sumneko/lua-language-server/commits/master/locale)!
The extensions in the VSCode market already come with pre-compiled binary files, usually you don't need to compile them.
86
+
## Configuration
87
+
Configuration of the server can be done in a number of ways, which are explained more in-depth in the [wiki](https://github.com/sumneko/lua-language-server/wiki/Configuration-File).
88
+
89
+
### Visual Studio Code
90
+
You can use the [settings editor](https://code.visualstudio.com/docs/getstarted/settings#_settings-editor) or edit the [raw JSON file](https://code.visualstudio.com/docs/getstarted/settings#_settingsjson).
67
91
68
-
Other clients can first try to download and use [pre-compiled binary files](https://github.com/sumneko/lua-language-server/wiki/PreCompiled-Binaries).
92
+
### Other
93
+
See the [configuration file wiki page](https://github.com/sumneko/lua-language-server/wiki/Configuration-File).
69
94
70
-
If you need to compile by yourself, please refer to [here](https://github.com/sumneko/lua-language-server/wiki/Build-and-Run)
71
95
72
-
## Setting
96
+
## Privacy
97
+
This language server has **opt-in** telemetry that collects usage data and sends it to the development team to help improve the extension. Read our [privacy policy](https://github.com/sumneko/lua-language-server/wiki/Home#privacy) to learn more.
73
98
74
-
* In VSCode: Just use the setting of VSCode.
75
-
* Standalone: See https://github.com/sumneko/lua-language-server/wiki/Setting
This language server collects usage data and sends it to the development team to help improve the extension. Read our [privacy policy](https://github.com/sumneko/lua-language-server/wiki/Privacy-Policy) to learn more and how to disable any telemetry.
"config.diagnostics.neededFileStatus": "* Opened: only diagnose opened files\n* Any: diagnose all files\n* None: disable this diagnostic\n\nEnd with `!` means override the group setting `diagnostics.groupFileStatus`.\n",
"config.diagnostics.newfield-call": "Enable newfield call diagnostics. It is raised when the parenthesis of a function call appear on the following line when defining a field in a table.",
59
59
"config.diagnostics.newline-call": "Enable newline call diagnostics. Is's raised when a line starting with `(` is encountered, which is syntactically parsed as a function call on the previous line.",
"config.diagnostics.redefined-local": "Enable redefined local variable diagnostics.",
@@ -112,7 +112,7 @@
112
112
"config.runtime.nonstandardSymbol": "Supports non-standard symbols. Make sure that your runtime environment supports these symbols.",
113
113
"config.runtime.path": "When using `require`, how to find the file based on the input name.\nSetting this config to `?/init.lua` means that when you enter `require 'myfile'`, `${workspace}/myfile/init.lua` will be searched from the loaded files.\nif `runtime.pathStrict` is `false`, `${workspace}/**/myfile/init.lua` will also be searched.\nIf you want to load files outside the workspace, you need to set `Lua.workspace.library` first.\n",
114
114
"config.runtime.pathStrict": "When enabled, `runtime.path` will only search the first level of directories, see the description of `runtime.path`.",
115
-
"config.runtime.plugin": "Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/Plugin) to learn more.",
115
+
"config.runtime.plugin": "Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/Plugins) to learn more.",
116
116
"config.runtime.pluginArgs": "Additional arguments for the plugin.",
117
117
"config.runtime.special": "The custom global variables are regarded as some special built-in variables, and the language server will provide special support\nThe following example shows that 'include' is treated as' require '.\n```json\n\"Lua.runtime.special\" : {\n\"include\" : \"require\"\n}\n```\n",
118
118
"config.runtime.unicodeName": "Allows Unicode characters in name.",
@@ -123,7 +123,7 @@
123
123
"config.semantic.variable": "Semantic coloring of variables/fields/parameters.",
"config.spell.dict": "Custom words for spell checking.",
126
-
"config.telemetry.enable": "Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Privacy-Policy).\n",
126
+
"config.telemetry.enable": "Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Home#privacy).\n",
127
127
"config.type.castNumberToInteger": "Allowed to assign the `number` type to the `integer` type.",
128
128
"config.type.weakNilCheck": "When checking the type of union type, ignore the `nil` in it.\n\nWhen this setting is `false`, the `number|nil` type cannot be assigned to the `number` type. It can be with `true`.\n",
129
129
"config.type.weakUnionCheck": "Once one subtype of a union type meets the condition, the union type also meets the condition.\n\nWhen this setting is `false`, the `number|boolean` type cannot be assigned to the `number` type. It can be with `true`.\n",
Copy file name to clipboardExpand all lines: package.nls.pt-br.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,7 @@
112
112
"config.runtime.nonstandardSymbol": "Supports non-standard symbols. Make sure that your runtime environment supports these symbols.",
113
113
"config.runtime.path": "When using `require`, how to find the file based on the input name.\nSetting this config to `?/init.lua` means that when you enter `require 'myfile'`, `${workspace}/myfile/init.lua` will be searched from the loaded files.\nif `runtime.pathStrict` is `false`, `${workspace}/**/myfile/init.lua` will also be searched.\nIf you want to load files outside the workspace, you need to set `Lua.workspace.library` first.\n",
114
114
"config.runtime.pathStrict": "When enabled, `runtime.path` will only search the first level of directories, see the description of `runtime.path`.",
115
-
"config.runtime.plugin": "Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/Plugin) to learn more.",
115
+
"config.runtime.plugin": "Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/Plugins) to learn more.",
116
116
"config.runtime.pluginArgs": "Additional arguments for the plugin.",
117
117
"config.runtime.special": "The custom global variables are regarded as some special built-in variables, and the language server will provide special support\nThe following example shows that 'include' is treated as' require '.\n```json\n\"Lua.runtime.special\" : {\n\"include\" : \"require\"\n}\n```\n",
118
118
"config.runtime.unicodeName": "Allows Unicode characters in name.",
@@ -123,7 +123,7 @@
123
123
"config.semantic.variable": "Semantic coloring of variables/fields/parameters.",
"config.spell.dict": "Custom words for spell checking.",
126
-
"config.telemetry.enable": "Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Privacy-Policy).\n",
126
+
"config.telemetry.enable": "Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Home#privacy).\n",
127
127
"config.type.castNumberToInteger": "Allowed to assign the `number` type to the `integer` type.",
128
128
"config.type.weakNilCheck": "When checking the type of union type, ignore the `nil` in it.\n\nWhen this setting is `false`, the `number|nil` type cannot be assigned to the `number` type. It can be with `true`.\n",
129
129
"config.type.weakUnionCheck": "Once one subtype of a union type meets the condition, the union type also meets the condition.\n\nWhen this setting is `false`, the `number|boolean` type cannot be assigned to the `number` type. It can be with `true`.\n",
0 commit comments