nvim-cm-tern
nvim-cm-tern copied to clipboard
It does not work
Here is my nvim config file:
`call plug#begin('~/.config/nvim/plugged')
Plug 'scrooloose/nerdtree'
Plug 'bling/vim-airline'
Plug 'tomasr/molokai'
Plug 'chiel92/vim-autoformat'
Plug 'roxma/nvim-completion-manager'
Plug 'othree/csscomplete.vim'
Plug 'roxma/nvim-cm-tern', {'do': 'npm install'}
call plug#end()
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS noci
syntax on colorscheme molokai
let g:airline_powerline_fonts = 1
autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
set number filetype plugin indent on set cursorline "set cursorcolumn set autoindent set cindent set tabstop=4 set softtabstop=4 set shiftwidth=4 set noexpandtab set smarttab set ignorecase set hlsearch set incsearch`
And here is my ~/.tern_project
{ "libs": [ "browser", "jquery" ], "plugins": { } }
I tried to code a js file, but this plugin did not work.
I tried to move ~/.tern-project to ~/.tern-config , But still not work
Your vimrc seems ok.
You could use omnifunc to test the tern_for_vim plugin, to confirm nodejs is working
The trouble-shooting section of NCM might help you debug this issue.