Visual Studio Code
Install the sumneko.lua extension to get up and running as fast as possible!
- Search for "Lua" by sumneko in the extension marketplace.
- Download and install the extension.
- That's it! It's that easy! Happy Coding!
Neovim
-
Install lua-language-server
-
From package manager
-
Scoop:
scoop install lua-language-server -
Homebrew:
brew install lua-language-server -
Macports:
sudo port install lua-language-server -
mise-en-place:
mise use aqua:LuaLS/lua-language-server
-
Scoop:
- From latest release
- Build from scratch
-
From package manager
-
Ensure that the
lua-language-serveris executable from the command line. It may need to be added to$PATH. - See Neovim's quickstart guide for language servers
JetBrains
Install the SumnekoLua plugin from the JetBrains Marketplace!
See JetBrains docs for instructions on installing plugins.
Other
The language server can also just be run from the command line, allowing it to be used wherever the Language Server Protocol is supported!
-
Install lua-language-server
-
From package manager
-
Scoop:
scoop install lua-language-server -
Homebrew:
brew install lua-language-server -
Macports:
sudo port install lua-language-server -
mise-en-place:
mise use aqua:LuaLS/lua-language-server
-
Scoop:
- From latest release
- Build from scratch
-
From package manager
-
Run
./bin/lua-language-serverand check out the supported arguments.
If you plan to use a symbolic link to point to the language server, you will want to instead use a wrapper script like the one below. This is required because the language server expects to find files in the current working directory.
#!/bin/bash
exec "<path-to-directory>/bin/lua-language-server" "$@"