dotfiles/vim/plugins/neco-vim/plugin/necovim.vim
2018-04-05 13:06:54 +02:00

27 lines
753 B
VimL

"=============================================================================
" FILE: necovim.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
" License: MIT license
"=============================================================================
augroup necovim
autocmd!
autocmd BufWritePost,FileType vim call necovim#helper#make_cache()
" Register source for NCM
autocmd User CmSetup call cm#register_source({
\ 'name': 'vim',
\ 'abbreviation': 'vim',
\ 'priority': 9,
\ 'scoping': 1,
\ 'scopes': ['vim'],
\ 'cm_refresh': 'cm#sources#necovim#refresh',
\ 'cm_refresh_patterns': ['\w\+\.$'],
\ })
augroup END
let g:loaded_necovim = 1
" __END__
" vim: foldmethod=marker