neovim: update script to install sumneko_lua

--rebase might cause the update process to fail on submodules
This commit is contained in:
FollieHiyuki 2021-10-15 00:49:35 +07:00
parent a74bba23c8
commit d8b8b179f5
No known key found for this signature in database
GPG Key ID: 813CF484F4993419

View File

@ -6,7 +6,7 @@ server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/sumneko_lua"
# Clone / Update # Clone / Update
if [ -d "${server_path}" ]; then if [ -d "${server_path}" ]; then
cd ${server_path} cd ${server_path}
git pull --rebase git pull
else else
git clone https://github.com/sumneko/lua-language-server.git ${server_path} git clone https://github.com/sumneko/lua-language-server.git ${server_path}
fi fi