Add tern setup for javascript autocompletion
This commit is contained in:
@@ -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
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user