fixed an oopsie

This commit is contained in:
jaydamani 2021-03-31 16:58:50 +05:30
parent 40cc37d23f
commit f791ac2e25
1 changed files with 9 additions and 12 deletions

View File

@ -2,8 +2,8 @@
BASE=$(git rev-parse --show-toplevel) 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" supported_lsp_langs="css html ts rust"
lsp_langs=${@:-"$default_lsp_langs"} lsp_langs=${@:-"$supported_lsp_langs"}
pfx="~~~~~ " pfx="~~~~~ "
heading() { heading() {
@ -35,8 +35,8 @@ heading "old nvim config will be deleted so watchout :0"
# copying config # copying config
rm -rf ~/.config/nvim/ && mkdir ~/.config/nvim #rm -rf ~/.config/nvim/ && mkdir ~/.config/nvim
cp -r init.lua ~/.config/nvim && cp -r lua ~/.config/nvim #cp -r init.lua ~/.config/nvim && cp -r lua ~/.config/nvim
#for f in `find -E . -regex ".*\.vim$|.*\.lua$"`; do #for f in `find -E . -regex ".*\.vim$|.*\.lua$"`; do
# p=${f#*/} # p=${f#*/}
@ -86,14 +86,11 @@ install_rust() {
fi fi
} }
for lang in ${lsp_langs}; do echo 'select languages you would be developing in.'
if fn_exists install_$lang ; then select lang in ${lsp_langs}; do
heading "Installing $lang language server" heading "Installing $lang language server"
install_$lang install_$lang
else
echo $lang setup not implemented
echo echo
fi
done done
if [[ ${warn_path} = true ]]; then if [[ ${warn_path} = true ]]; then