FollieHiyuki-dotfiles/home/.config/nvim/scripts/lsp/dockerls

13 lines
305 B
Plaintext
Raw Normal View History

#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/dockerls"
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
cd ${server_path}
[ ! -f package.json ] && npm init -y --scope=lsp || true
npm install dockerfile-language-server-nodejs@latest
cd ${current_path}