dtb11288 / deoplete-ternjs

deoplete.nvim source for javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

NeoBundle 'carlitux/deoplete-ternjs', { 'build': { 'mac': 'npm install -g tern', 'unix': 'npm install -g tern' }}
# or
Plug 'carlitux/deoplete-ternjs'

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

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

License:MIT License


Languages

Language:Python 61.9%Language:JavaScript 30.3%Language:Vim Script 7.8%