mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-12 09:08:21 -05:00
359cc044b2
neovim: lsp: add ansiblels chore: cleanup shebang (remove 'sh -e' pattern)
27 lines
526 B
Bash
Executable File
27 lines
526 B
Bash
Executable File
#!/bin/sh
|
|
|
|
current_path="$PWD"
|
|
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/sumneko_lua"
|
|
|
|
# Clone / Update
|
|
if [ -d "${server_path}" ]; then
|
|
cd ${server_path}
|
|
git pull
|
|
else
|
|
git clone https://github.com/sumneko/lua-language-server.git ${server_path}
|
|
cd ${server_path}
|
|
fi
|
|
|
|
git submodule update --init --recursive
|
|
|
|
# Build
|
|
cd 3rd/luamake
|
|
./compile/install.sh
|
|
cd ../..
|
|
./3rd/luamake/luamake rebuild
|
|
|
|
# The build process automatically exports path to `~/.profile`
|
|
rm -rf ~/.profile
|
|
|
|
cd ${current_path}
|