Assuming you're here because you want LSP(Language Server Protocol) for your neovim setup, but your Linux distro doesn't provide the latest version of lua-language-server, so in this article we'll install lua-language-server from source.
Make sure that you have, Ninja Build, GCC(some distros need G++ as well), and Clang.
To install the dependencies on Gentoo run:
sudo emerge -qav sys-devel/gcc sys-devel/clang dev-util/ninja
~/.local/bin
so I'll just clone it theregit clone https://github.com/LuaLS/lua-language-server ~/.local/bin/lua-language-server
cd ~/.local/bin/lua-language-server
git submodule update --recursive
ninja
luamake rulescd 3rd/luamake
git submodule update --init
compile/install.sh
cd ../../
./3rd/luamake/luamake rebuild
SHELL_NAME=`basename $SHELL`
SHELL_RC="./.${SHELL_NAME}rc"
echo 'export PATH="${HOME}/.local/bin/lua-language-server/bin:${PATH}"' >> $SHELL_RC
Now re-login or run
source $SHELL_RC
$SHELL_NAME
Add this line to ~/.config/nvim/init.lua
or to where you put lsp's config in Neovim
require('lspconfig').sumneko_lua.setup {}
Restart Neovim and your good to go.