From bc9649e653b9c865c2c6f0487a0bc45fc588963e Mon Sep 17 00:00:00 2001 From: marvelman3284 Date: Mon, 5 Apr 2021 23:51:51 -0400 Subject: [PATCH] Allow for users to choose which lsps to install --- install.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index fdce7d5..5a3108f 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,20 @@ BASE=$(git rev-parse --show-toplevel) LSP_BIN_PATH=$HOME/.local/bin default_lsp_langs="css html ts rust python" -lsp_langs=${@:-"$default_lsp_langs"} +lsp_langs="" + +choose_langs() { + read -p "Would you like to install $1 lsp?(y/n)" lang + if [ "$lang" = "y" ] + then + lsp_langs+="$1 " + fi +} + +for lang in $default_lsp_langs +do + choose_langs $lang +done pfx="~~~~~ " heading() {