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
lua-language-server is executable from the command line. It may need to be added to $PATH.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
./bin/lua-language-server and 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" "$@"