Description
I installed the plugin tern_for_vim. Followed all the instructions from readme but it doesn't work. I don't have any autocompletion for javascript, the commands :TernDef and :TernDoc are not recognized in vim. I installed the tern server globally using npm and I can launch it in the terminal.
However, if I launch :call tern#Enable()
it seems that the plugin gets loaded and I can see :TernDef and :TernDoc commands but still no autcompletion for javascript.
I tried to launch tern with the --verbose option but it did not output anything when I tried to use autocompletion in javascript files.
It seems that there is no communication between vim and the tern server if I understand it correctly.
Here are my plugins in .vimrc file:
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'tmhedberg/SimpylFold'
Plugin 'vim-syntastic/syntastic'
Plugin 'scrooloose/nerdtree'
" Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'kien/ctrlp.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'tpope/vim-fugitive'
Plugin 'vim-scripts/indentpython.vim'
Plugin 'nvie/vim-flake8'
" Plugin 'Valloric/YouCompleteMe'
Plugin 'davidhalter/jedi-vim'
Plugin 'SirVer/ultisnips'
Plugin 'honza/vim-snippets'
Plugin 'pangloss/vim-javascript'
Plugin 'mxw/vim-jsx'
Plugin 'alvan/vim-closetag'
Plugin 'Valloric/MatchTagAlways'
Plugin 'ternjs/tern_for_vim'
Plugin 'lervag/vimtex'
I also setup a .tern-config file in the home directory:
{
"libs": [
"ecmascript",
"browser",
"jquery"
],
"plugins": {
"es_modules": {},
"node": {}
}
}
I could run ternjs when I set up YouCompleteMe for python autocompletion, but I didn't like it and chose jedi-vim (which is really nice). Now I want to setup javascript autocompletion but without no luck.
Is it possible that the plugin is in conflict with some of my other plugins?
OS: Xubuntu 16.04 LTS