Skip to content

jsl9208/deoplete-ternjs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deoplete-ternjs

deoplete.nvim source for javascript.

Based on tern_for_vim and deoplete-jedi

Required

## 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.

Install

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' }

Ternjs Configuration

Tern configuration docs.

Vim Configuration example

" 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

About

deoplete.nvim source for javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 62.6%
  • JavaScript 29.1%
  • Vim Script 8.3%