Allow for users to choose which lsps to install

This commit is contained in:
marvelman3284 2021-04-05 23:51:51 -04:00
parent 227e6d7116
commit bc9649e653
1 changed files with 14 additions and 1 deletions

View File

@ -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() {