This repository has been archived on 2022-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/home/.config/nvim/scripts/lsp/ansiblels

20 lines
349 B
Bash
Executable File

#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/ansiblels"
# Clone / Update
if [ -d "${server_path}" ]; then
cd ${server_path}
git pull
else
git clone https://github.com/ansible/ansible-language-server ${server_path}
cd ${server_path}
fi
# Build
npm ci
npm run compile
cd ${current_path}