Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Shougo
    @Shougo
    hook_add is the configuration to load it.
    My example:
    [[plugins]]
    repo = 'Shougo/vimfiler.vim'
    depends = 'unite.vim
    on_map = [['n', '<Plug>']]
    on_if = "isdirectory(bufname('%'))"
    hook_add = 'nnoremap <silent>   [Space]v   :<C-u>VimFiler -invisible<CR>'
    hook_source = 'source ~/.vim/rc/plugins/vimfiler.rc.vim'
    The mapping must be defined in hook_add.
    Mike Hartington
    @mhartington
    anyone getting errors when installing a new plugin? It seems that dein and airline aren't playing nice together
    Error detected while processing function airline#check_mode[45]..airline#highlighter#highlight:
    line   14:
    E716: Key not present in Dictionary: accents, accent)
    only seems to happen when you install a new plugin with this
      if dein#check_install()
        call dein#install()
      endif
    see line 73
    I also use dein with airline together,but if I add new plugin,and restart nvim,the plugin will auto install,after installing ,the nvim will be open ,but I can not see color in statusline,
    I need restart neovim
    Mike Hartington
    @mhartington
    yeah thats thing I'm seeing
    Wang Shidong
    @wsdjeg
    I have test in vim ,no issue,only happened in neovim
    @mhartington I think an issue maybe should be open. "airline lost color after dein check install plugin when neovim startup."
    Mike Hartington
    @mhartington
    Wang Shidong
    @wsdjeg
    thanks
    Alexander Jeurissen
    @alexanderjeurissen

    in the documentation the following is stated:

    *dein-options-depends*
            depends        (List or String)
            Specify a list of plugins a plugin depends on.
            List items are '{plugin-name}'.
            Those specified in the list are NOT installed automatically.
            Note: The loading order is not guaranteed in non lazy plugins.

    If depends doesn't install the mentioned plugin handles automatically then what is the use of the depends option ? Just to make sure those plugins are sourced before the plugin with the depends option ?

    Shougo
    @Shougo
    If depends doesn't install the mentioned plugin handles automatically then what is the use of the depends option ?
    If they are not installed, dein will print the error.
    Just to make sure those plugins are sourced before the plugin with the depends option ?
    Yes
    It is the different behavior with neobundle.
    Alexander Jeurissen
    @alexanderjeurissen
    ah ok thanks for clarifying ! I really like dein so far :thumbsup: it's really fast.
    Alexander Jeurissen
    @alexanderjeurissen
    I came across the following problem though when cloning my new dotfiles to another machine of mine (also running osx).
    I get an error with the following dein#add call:
      call dein#add('szw/vim-maximizer', {
            \ 'lazy': 1,
            \ 'on_cmd': 'MaximizerToggle',
            \ 'hook_add': 'nnoremap <silent><leader>wz :MaximizerToggle<CR>'
            \})
    Screen Shot 2016-04-26 at 23.59.01.png
    Shougo
    @Shougo
    You don't have to add lazy.
    Alexander Jeurissen
    @alexanderjeurissen
    Yeah I'm aware of that refactoring that is on my todolist ;)
    do you think that's causing the error ?
    Shougo
    @Shougo
    Please create new issue.
    I will try it.
    Alexander Jeurissen
    @alexanderjeurissen
    ok I will
    Alexander Jeurissen
    @alexanderjeurissen
    Ok so quick update, I tried removing dein completely before (the whole folder including cache) but back then that didn't solve the issue.
    Using a minimal vimrc I could no longer reproduce the error. So I asumed something was wrong in my config. So I commented out all dein#add calls and uncommented them one by one calling the dein recache command after uncommenting it as well as resourcing my vimrc. Now I have everything working as expected with all plugins uncommented.
    I also can no longer reproduce the error even when removing dein completely and reinstalling.. So all is well not sure what was causing the race condition.
    I'll create an github issue tomorrow describing the race condition in more detail. I'm off to bed now.
    Gontran Baerts
    @gbcreation

    Hi, I would like to check at startup if a plugin is enabled or disabled to display a warning message. For example:

    call dein#begin(...)
    call dein#add('ternjs/tern_for_vim', {
    \    'if': 'executable("tern")'
    \ })
    if dein#tap('tern_for_vim') == 0
        echohl WarningMsg | echom "tern_for_vim disabled. Is tern installed ?" | echohl None
    endif
    call dein#end()

    Is it the right way to do this ?

    Shougo
    @Shougo
    Yes.
    Gontran Baerts
    @gbcreation
    OK, thanks.
    afk
    @afk-mario
    What is the best way to check if a plugin is already installed on dein?
    for example
    This message was deleted
        if isdirectory(expand("~/.vim/bundle/gundo.vim"))
            let g:gundo_prefer_python3 = 1
            nnoremap <leader>g :GundoToggle<CR>
        endif
    afk
    @afk-mario
    dein#check_install()?
    afk
    @afk-mario
    if !dein#check_install(["sjl/gundo.vim"])
        echom 'Gundo Installed'
        let g:gundo_prefer_python3 = 1
        nnoremap <leader>g :GundoToggle<CR>
    endif
    I can't get that to work :worried:
    Shougo
    @Shougo
    @Arlefreak You should use dein#tap().
    if dein#tap('gundo.vim')
    afk
    @afk-mario
    @Shougo Thanks!
    afk
    @afk-mario

    @Shougo hey I'm trying to add Omnisharp to my dein config, and add the build config, the problem is that I need to run
    git submodule update --init --recursive

    before doind the actual build, currently I have:

            call dein#add('OmniSharp/omnisharp-vim', {
                        \ 'build':
                        \   'sh -c "cd server/ && xbuild"'
                        \ })