FollieHiyuki-dotfiles/home/.config/nvim/scripts/lsp/yamlls
2021-10-17 21:48:13 +07:00

13 lines
279 B
Bash
Executable File

#!/bin/sh -e
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/yamlls"
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
cd ${server_path}
[ ! -f package.json ] && yarn init -y || true
yarn add yaml-language-server@latest
cd ${current_path}