-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·35 lines (29 loc) · 784 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·35 lines (29 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
set -e
PLUG_VIM="${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim
PLUG_VIM_URL="https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
if [ -f $PLUG_VIM ]; then
echo "Vim-plug already installed"
else
echo "Installing vim-plug, a vim plugin manager, ..."
curl -fLo "$PLUG_VIM" --create-dirs "$PLUG_VIM_URL"
fi
echo "Installing plugins, may take a while ..."
nvim +PlugInstall +qall
COC_EXTENSIONS=(
coc-tsserver
coc-pyright
coc-json
coc-yaml
coc-sh
coc-html
coc-css
coc-eslint
coc-prettier
coc-terraform
coc-rust-analyzer
coc-clangd
)
echo "Installing Coc language extensions ..."
nvim --headless +"CocInstall -sync ${COC_EXTENSIONS[*]}" +qall
echo "Finished! Happy vimming!"