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

14 lines
337 B
Plaintext
Raw Normal View History

#!/bin/sh -e
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/cmake"
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
cd ${server_path}
python3 -m venv ${server_path}/venv
${server_path}/venv/bin/pip3 install -U pip
${server_path}/venv/bin/pip3 install -U cmake-language-server
cd ${current_path}