From 48ed29efb539840cbe7e2c93c390fabe29a9689f Mon Sep 17 00:00:00 2001 From: Adrien Abraham Date: Thu, 18 Aug 2022 11:10:14 +0200 Subject: [PATCH] install-pylsp --- install-pylsp.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 install-pylsp.sh diff --git a/install-pylsp.sh b/install-pylsp.sh new file mode 100755 index 0000000..543b0fa --- /dev/null +++ b/install-pylsp.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +pip3 install python-lsp-server + +ask_install() { + packages="$@" + read -p "Install $packages? [y/n] " -n 1 -r ; echo + [[ "$REPLY" = y ]] && pip3 install $packages +} + +ask_install pyflakes +ask_install black python-lsp-black +ask_install mypy pylsp-mypy