From f791ac2e25b7cc6bfe896532aff0c7ce4128695c Mon Sep 17 00:00:00 2001 From: jaydamani Date: Wed, 31 Mar 2021 16:58:50 +0530 Subject: [PATCH] fixed an oopsie --- install.sh | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/install.sh b/install.sh index 9307287..c042a3c 100755 --- a/install.sh +++ b/install.sh @@ -2,8 +2,8 @@ BASE=$(git rev-parse --show-toplevel) LSP_BIN_PATH=$HOME/.local/bin -default_lsp_langs="css html ts rust" -lsp_langs=${@:-"$default_lsp_langs"} +supported_lsp_langs="css html ts rust" +lsp_langs=${@:-"$supported_lsp_langs"} pfx="~~~~~ " heading() { @@ -35,8 +35,8 @@ heading "old nvim config will be deleted so watchout :0" # copying config -rm -rf ~/.config/nvim/ && mkdir ~/.config/nvim -cp -r init.lua ~/.config/nvim && cp -r lua ~/.config/nvim +#rm -rf ~/.config/nvim/ && mkdir ~/.config/nvim +#cp -r init.lua ~/.config/nvim && cp -r lua ~/.config/nvim #for f in `find -E . -regex ".*\.vim$|.*\.lua$"`; do # p=${f#*/} @@ -86,14 +86,11 @@ install_rust() { fi } -for lang in ${lsp_langs}; do - if fn_exists install_$lang ; then - heading "Installing $lang language server" - install_$lang - else - echo $lang setup not implemented - echo - fi +echo 'select languages you would be developing in.' +select lang in ${lsp_langs}; do + heading "Installing $lang language server" + install_$lang + echo done if [[ ${warn_path} = true ]]; then