deoplete.nvim source for javascript.
Based on tern_for_vim and deoplete-jedi
-
Neovim and neovim/python-client
-
deoplete.nvim
-
ternjs
- https://ternjs.net/ - This needs to be installed globally
## Important!
If no .tern-project file is found in the current buffer's directory that is being edited or its ancestors, deoplete-ternjs will start the ternjs server in the current working directory:
:pwd
allowing ternjs use the default setup.
Using NeoBundle
NeoBundle 'carlitux/deoplete-ternjs', { 'build': { 'mac': 'npm install -g tern', 'unix': 'npm install -g tern' }}
or using Plug
Plug 'carlitux/deoplete-ternjs', { 'do': 'npm install -g tern' }
" Use deoplete.
let g:tern_request_timeout = 1
let g:tern_show_signature_in_pum = '0' " This do disable full signature type on autocomplete
If you are using tern_for_vim, you also want to use the same tern command with deoplete-ternjs
" Use tern_for_vim.
let g:tern#command = ["tern"]
let g:tern#arguments = ["--persistent"]
Also if you are using add loadEagerly - * many files * - this to your .bashrc or .zshrc, this will allow you load all files you need when ternjs is started.
ulimit -n 2048