Add tern setup for javascript autocompletion

This commit is contained in:
Arif Herusetyo Wicaksono 2018-03-05 01:22:01 +09:00
parent fd27cf7f8c
commit c270a6ee12
2 changed files with 15 additions and 0 deletions

1
README.md Normal file
View File

@ -0,0 +1 @@
# Standard personal setup for development

14
vim8.md
View File

@ -65,4 +65,18 @@ sudo apt install build-essential cmake python-dev
# clone from github repositories and install python, go, and javascript completion # clone from github repositories and install python, go, and javascript completion
cd $HOME/.vim/bundle/YouCompleteMe cd $HOME/.vim/bundle/YouCompleteMe
./install.py --go-completer --js-completer ./install.py --go-completer --js-completer
# for javascript autocompletion
cd $HOME/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/tern_runtime
npm install --production
cat << EOF > $HOME/.tern-config
{
"libs" : [
"browser"
]
"plugins": {
"node": {}
}
}
EOF
``` ```