README
Vim goto file for eggjs, support router, controllers, service, proxy, enums.
INSTALL
By vim-plug:
Plug 'hotoo/jsgf.vim', { 'for': ['javascript', 'javascriptreat', 'typescript', 'typescriptreact', 'json'] }
Plug 'hotoo/eggjs-gf.vim', { 'for': ['javascript', 'typescript'] }
By Vundle
Plugin 'hotoo/jsgf.vim'
Plugin 'hotoo/eggjs-gf.vim'
This plugin is better work in with jsgf.vim .
USAGE
gf
to open the define file which eggjs controller, service, proxy, enums path under the cursor.
Options
Maybe you need g:eggjs_gf_loadpath
option in .vimrc
" https://eggjs.org/zh-cn/advanced/loader.html#loadtocontext
let g:eggjs_gf_loadpath = 'service\|proxy\|model\|someVar'