I'm using denite plugin and I have some intialization for it.
call denite#custom#source( \ 'file_rec', 'matchers', ['matcher_fuzzy', 'matcher_project_files']) call denite#custom#var('file_rec/git', 'command', ['git', 'ls-files', '-co', '--exclude-standard'])
Since I moved from external package manager into vim packages I moved this into a function that is executed inside
VimEnter autocmd. But now I want to open denite prompt when no files have been passed to vim as arguments.
au VimEnter * if argc() == 0 | exe ":Denite `finddir('.git', ';') != '' ? 'file_rec/git' : 'file_rec'`"
Which is quite easy, but the problem is that at this point vim still doesn't know anything about my custom 'file_rec/git' command.
I've tried to place initialization into
~/.vim/after/plugin/denite.vim, but that doesn't help. Vim is saying that he basically doesn't know what denite is at this point.