2021-05-02 21:09:07 -04:00
|
|
|
#!/bin/sh -e
|
2021-03-02 09:05:45 -05:00
|
|
|
|
|
|
|
# clone the repo
|
2021-03-04 15:35:42 -05:00
|
|
|
git clone https://github.com/sumneko/lua-language-server.git
|
2021-05-02 21:09:07 -04:00
|
|
|
cd lua-language-server
|
2021-03-02 09:05:45 -05:00
|
|
|
git submodule update --init --recursive
|
|
|
|
|
|
|
|
# build
|
|
|
|
# You need `ninja`
|
2021-05-02 21:09:07 -04:00
|
|
|
cd 3rd/luamake
|
2021-03-02 09:05:45 -05:00
|
|
|
ninja -f ninja/linux.ninja
|
|
|
|
cd ../..
|
|
|
|
./3rd/luamake/luamake rebuild
|
|
|
|
|
|
|
|
cd ../
|
|
|
|
|
|
|
|
# For coc.nvim
|
|
|
|
mkdir -pv ~/.local/share/nvim/lsp
|
2021-03-29 10:49:29 -04:00
|
|
|
cp -rf lua-language-server ~/.local/share/nvim/lsp/ && echo "copied 'lua-language-server' -> ~/.local/share/nvim/lsp/lua-language-server"
|
2021-03-02 09:05:45 -05:00
|
|
|
# For Doom Emacs
|
|
|
|
mkdir -pv ~/.config/emacs/.local/etc/lsp
|
2021-03-27 21:14:11 -04:00
|
|
|
mv -fv lua-language-server ~/.config/emacs/.local/etc/lsp/
|