To install the lua-language-server
on Ubuntu, you can follow these steps:
sudo apt update
sudo apt install -y git build-essential ninja-build luarocks
luarocks
package for Lua:sudo luarocks install --server=https://luarocks.org/dev luaformatter
lua-language-server
repository:git clone https://github.com/sumneko/lua-language-server
cd lua-language-server
git submodule update --init --recursive
cd 3rd/luamake
./compile/install.sh
cd ../..
./3rd/luamake/luamake rebuild
After the build is complete, the lua-language-server
executable can be found in the bin/Linux
directory.
lua-language-server
to your PATH
:# Replace /path/to/lua-language-server with the path to the directory you cloned in step 3
echo "export PATH=\$PATH:/path/to/lua-language-server/bin/Linux" >> ~/.bashrc
source ~/.bashrc
Now, the lua-language-server
should be installed and available on your system. To use it with your favorite editor or IDE, you will need to follow the specific configuration steps for that editor or IDE.