Add tern setup for javascript autocompletion
This commit is contained in:
parent
fd27cf7f8c
commit
c270a6ee12
14
vim8.md
14
vim8.md
@ -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
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user