FollieHiyuki-dotfiles/home/.config/nvim/scripts/lsp/bashls
FollieHiyuki 359cc044b2
neovim + chore
neovim: lsp: add ansiblels
chore: cleanup shebang (remove 'sh -e' pattern)
2021-10-18 13:28:27 +07:00

13 lines
290 B
Bash
Executable File

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