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
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.
32
+
The language server can be installed for use in Visual Studio Code, NeoVim, and any [other clients](https://microsoft.github.io/language-server-protocol/implementors/tools/) that support the [Language Server Protocol](https://microsoft.github.io/language-server-protocol/). The language server can be configured using a [configuration file](https://github.com/LuaLS/lua-language-server/wiki/Configuration-File). For a more detailed intro, check out the [getting started page in the wiki](https://github.com/LuaLS/lua-language-server/wiki/Getting-Started).
33
33
34
34
### Visual Studio Code
35
35
[](https://marketplace.visualstudio.com/items?itemName=sumneko.lua)
36
36
37
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/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#lua_ls)
41
+
42
+
View the installation instructions for NeoVim in the [nvim-lspconfig repo](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#lua_ls).
43
+
44
+
For a guide to getting started from scratch using Mason, read [Heiker's guide](https://dev.to/vonheikemen/getting-started-with-neovims-native-lsp-client-in-the-year-of-2022-the-easy-way-bp3).
40
45
41
46
### Command Line
42
47
[](https://github.com/LuaLS/lua-language-server/wiki/Getting-Started#command-line)
43
48
44
-
Check the [wiki for a guide](https://github.com/LuaLS/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 with NeoVim and [other clients](https://microsoft.github.io/language-server-protocol/implementors/tools/) that follow the [language server protocol](https://microsoft.github.io/language-server-protocol/overviews/lsp/overview/).
49
+
Check the [wiki for a guide](https://github.com/LuaLS/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 with [other clients](https://microsoft.github.io/language-server-protocol/implementors/tools/) that follow the [language server protocol](https://microsoft.github.io/language-server-protocol/overviews/lsp/overview/).
45
50
46
-
## Supported Lua Versions
47
-
| Version | Supported |
48
-
| :-----: | :------------: |
49
-
| Lua 5.1 |![✅][checkmark]|
50
-
| Lua 5.2 |![✅][checkmark]|
51
-
| Lua 5.3 |![✅][checkmark]|
52
-
| Lua 5.4 |![✅][checkmark]|
53
-
| LuaJIT |![✅][checkmark]|
51
+
### Community Install Methods
52
+
The install methods below are maintained by community members.
@@ -82,15 +83,6 @@ Are you able to [provide a translation](https://github.com/LuaLS/lua-language-se
82
83
83
84
Thank you to [all contributors of translations](https://github.com/LuaLS/lua-language-server/commits/master/locale)!
84
85
85
-
## Configuration
86
-
Configuration of the server can be done in a number of ways, which are explained more in-depth in the [wiki](https://github.com/LuaLS/lua-language-server/wiki/Configuration-File).
87
-
88
-
### Visual Studio Code
89
-
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).
90
-
91
-
### Other
92
-
See the [configuration file wiki page](https://github.com/LuaLS/lua-language-server/wiki/Configuration-File).
93
-
94
86
95
87
## Privacy
96
88
The language server had **opt-in** telemetry that collected usage data and sent it to the development team to help improve the extension. Read our [privacy policy](https://github.com/LuaLS/lua-language-server/wiki/Home#privacy) to learn more. Telemetry was removed in `v3.6.5` and is no longer part of the language server.
@@ -116,6 +108,3 @@ Software that the language server (or the development of it) uses:
"config.diagnostics.count-down-loop": "Enable diagnostics for `for` loops which will never reach their max/limit because the loop is incrementing instead of decrementing.",
50
51
"config.diagnostics.deprecated": "Enable diagnostics to highlight deprecated API.",
51
52
"config.diagnostics.different-requires": "Enable diagnostics for files which are required by two different paths.",
"config.diagnostics.global-element": "Enable diagnostics to warn about global elements.",
65
67
"config.diagnostics.global-in-nil-env": "Enable cannot use global variables ( `_ENV` is set to `nil`) diagnostics.",
66
68
"config.diagnostics.globals": "Defined global variables.",
67
69
"config.diagnostics.groupFileStatus": "Modify the diagnostic needed file status in a group.\n\n* Opened: only diagnose opened files\n* Any: diagnose all files\n* None: disable this diagnostic\n\n`Fallback` means that diagnostics in this group are controlled by `diagnostics.neededFileStatus` separately.\nOther settings will override individual settings without end of `!`.\n",
@@ -70,13 +72,15 @@
70
72
"config.diagnostics.ignoredFiles.Disable": "These files are not diagnosed.",
71
73
"config.diagnostics.ignoredFiles.Enable": "Always diagnose these files.",
72
74
"config.diagnostics.ignoredFiles.Opened": "Only when these files are opened will it be diagnosed.",
75
+
"config.diagnostics.incomplete-signature-doc": "Incomplete @param or @return annotations for functions.",
73
76
"config.diagnostics.invisible": "Enable diagnostics for accesses to fields which are invisible.",
74
77
"config.diagnostics.libraryFiles": "How to diagnose files loaded via `Lua.workspace.library`.",
75
78
"config.diagnostics.libraryFiles.Disable": "These files are not diagnosed.",
76
79
"config.diagnostics.libraryFiles.Enable": "Always diagnose these files.",
77
80
"config.diagnostics.libraryFiles.Opened": "Only when these files are opened will it be diagnosed.",
78
81
"config.diagnostics.lowercase-global": "Enable lowercase global variable definition diagnostics.",
"config.diagnostics.missing-global-doc": "Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values.",
80
84
"config.diagnostics.missing-parameter": "Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.",
81
85
"config.diagnostics.missing-return": "Enable diagnostics for functions with return annotations which have no return statement.",
82
86
"config.diagnostics.missing-return-value": "Enable diagnostics for return statements without values although the containing function declares returns.",
"config.diagnostics.count-down-loop": "Enable diagnostics for `for` loops which will never reach their max/limit because the loop is incrementing instead of decrementing.",
50
51
"config.diagnostics.deprecated": "Enable diagnostics to highlight deprecated API.",
51
52
"config.diagnostics.different-requires": "Enable diagnostics for files which are required by two different paths.",
"config.diagnostics.globals": "Defined global variables.",
67
69
"config.diagnostics.groupFileStatus": "Modify the diagnostic needed file status in a group.\n\n* Opened: only diagnose opened files\n* Any: diagnose all files\n* None: disable this diagnostic\n\n`Fallback` means that diagnostics in this group are controlled by `diagnostics.neededFileStatus` separately.\nOther settings will override individual settings without end of `!`.\n",
@@ -70,13 +72,15 @@
70
72
"config.diagnostics.ignoredFiles.Disable": "These files are not diagnosed.",
71
73
"config.diagnostics.ignoredFiles.Enable": "Always diagnose these files.",
72
74
"config.diagnostics.ignoredFiles.Opened": "Only when these files are opened will it be diagnosed.",
75
+
"config.diagnostics.incomplete-signature-doc": "Incomplete @param or @return annotations for functions.",
73
76
"config.diagnostics.invisible": "Enable diagnostics for accesses to fields which are invisible.",
74
77
"config.diagnostics.libraryFiles": "How to diagnose files loaded via `Lua.workspace.library`.",
75
78
"config.diagnostics.libraryFiles.Disable": "These files are not diagnosed.",
76
79
"config.diagnostics.libraryFiles.Enable": "Always diagnose these files.",
77
80
"config.diagnostics.libraryFiles.Opened": "Only when these files are opened will it be diagnosed.",
"config.diagnostics.missing-global-doc": "Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values.",
80
84
"config.diagnostics.missing-parameter": "Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.",
81
85
"config.diagnostics.missing-return": "Enable diagnostics for functions with return annotations which have no return statement.",
82
86
"config.diagnostics.missing-return-value": "Enable diagnostics for return statements without values although the containing function declares returns.",
0 commit comments