how to install lua-language-server on ubuntu
케이 (3)2023년 4월 20일
Tags #lua#ubuntu

To install the lua-language-server on Ubuntu, you can follow these steps:

  1. Install the required dependencies:
sudo apt update
sudo apt install -y git build-essential ninja-build luarocks
  1. Install the luarocks package for Lua:
sudo luarocks install --server=https://luarocks.org/dev luaformatter
  1. Clone the lua-language-server repository:
git clone https://github.com/sumneko/lua-language-server
cd lua-language-server
  1. Update and initialize the submodules:
git submodule update --init --recursive
  1. Build the language server:
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.

  1. Add the 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.


0개의 댓글