#!/bin/sh

server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/pylsp"
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"

python3 -m venv ${server_path}/venv
${server_path}/venv/bin/pip3 install -U pip
${server_path}/venv/bin/pip3 install -U 'python-lsp-server[all]'
# ${server_path}/venv/bin/pip3 install -U pyls-flake8
# ${server_path}/venv/bin/pip3 install -U pylsp-mypy
# ${server_path}/venv/bin/pip3 install -U pyls-isort
# ${server_path}/venv/bin/pip3 install -U pyls-memestra
${server_path}/venv/bin/pip3 install -U pylsp-rope
# ${server_path}/venv/bin/pip3 install -U python-lsp-black
