New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't detect the new plugin, if the plugin is put inside if branch #181
Comments
It's not possible. |
What is the problem?
This is the Vim feature. |
Is there any method to install plugin 'ack.vim' only when executable 'ag' exist? |
I think it works. But the below is better. call dein#add('mileszs/ack.vim', {'if': executable('ag')}) " :Ack <key> % search local |
You use dein cache feature. |
Thanks for your tip for simple one 'if' logic, but, could you explain a rewrite vimrc for the following logic?
|
call dein#add('Shougo/neocomplete.vim', {'if': has('lua')})
if !dein#tap('neocomplete.vim')
call dein#add('Valloric/YouCompleteMe', {'if': has('python')})
endif |
In your previous comment, you said:
Does the
|
" minimal .vimrc
set runtimepath^=~/path/to/dein.nvim/
call dein#begin('~/.vim/dein')
call dein#add('~/.vim/dein/repos/github.com/Shougo/dein.vim')
call dein#add('Shougo/neocomplete.vim', {'if':has('python')})
if !dein#tap('neocomplete.vim')
call dein#add('Valloric/YouCompleteMe', {'if': has('python')})
endif
call dein#end()
filetype plugin indent on
syntax enable
filetype plugin indent on
syntax enable
if dein#check_install()
call dein#install()
endif
|
Warning: I will close the issue without the minimal init.vim and the reproduce ways.
Problems summary
Expected
If I install /usr/bin/ag then 'dein' will install plugin ack.vim.
If there is no /usr/bin/ag then 'dein' will skip install plugin ack.vim.
Environment Information
Provide a minimal .vimrc with less than 50 lines (Required!)
The reproduce ways from Vim starting (Required!)
Screen shot (if possible)
Upload the log messages by
:redir
and:message
The text was updated successfully, but these errors were encountered: