Merge pull request #21 from marvelman3284/main
Allow for users to be able to choose which lsps are installed
This commit is contained in:
commit
088fc46d7b
1 changed files with 14 additions and 1 deletions
15
install.sh
15
install.sh
|
@ -3,7 +3,20 @@ BASE=$(git rev-parse --show-toplevel)
|
||||||
LSP_BIN_PATH=$HOME/.local/bin
|
LSP_BIN_PATH=$HOME/.local/bin
|
||||||
|
|
||||||
default_lsp_langs="css html ts rust python"
|
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="~~~~~ "
|
pfx="~~~~~ "
|
||||||
heading() {
|
heading() {
|
||||||
|
|
Loading…
Reference in a new issue