Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    The function is defined.
    What is your Vim version?
    Gontran Baerts
    @gbcreation
    NVIM 0.1.3
    Shougo
    @Shougo
    My neovim version is 0.1.4-dev.
    I cannot reproduce it
    It seems your environment problem.
    You should update your neovim to the latest.
    Gontran Baerts
    @gbcreation
    It works when I use vim-plug
    Shougo
    @Shougo
    It works for me...
    Gontran Baerts
    @gbcreation
    OK, I will continue to test...
    Shougo
    @Shougo
    I cannot support it, because it works
    Gontran Baerts
    @gbcreation
    Thanks a lot for your help
    Shougo
    @Shougo
    You should test for other cases
    If other people can reproduce it, OK I will check though
    I have not much free time
    Gontran Baerts
    @gbcreation
    Don't worry. I anderstand :smile:
    I greatly appreciate your work.
    Gontran Baerts
    @gbcreation
    @Shougo I completely rewrote my initialization scripts from scratch and easymotion lazy loads as expected. So it should be a problem with my previous environment settings.
    Gontran Baerts
    @gbcreation
    I use the blueyed/vim-diminactive plugin. I would like to lazy load it only the first time I split the window. What kind of event should I use ?
    Wang Shidong
    @wsdjeg
    @gbcreation if you are using neovim.I think build from source is a good choice,before you open any issues,just run git pull ,make,sudo make install ,if you still get error,you can open issues
    Gontran Baerts
    @gbcreation
    @wsdjeg ok. Actually the problem was not related to my version of neovim, but probably to my initialization scripts
    Now it just works
    Maybe I had problems because I change the script in which I add plugins to Dein. The first one was plugin-list.vim, then I change to plugin-list-dein.vim without deleing the first one. So Dein cache didn't detect the change. Do you see what I mean ?
    This is the filename passed as second argument to dein#begin()
    Gontran Baerts
    @gbcreation
    Do I have to call dein#clear_state() manually when I change vimrcs passed to dein#begin() ?
    Shougo
    @Shougo
    @gbcreation Please read the dein#begin() doc.
    Dein supports the detection.
    But you must specify the 2nd argument.
    Gontran Baerts
    @gbcreation

    This is my configuration:

    let s:plugins_dir = expand('~/.cache/nvim/dein')
    if !dein#load_state(s:plugins_dir)
        finish
    endif
    let s:pluginList=fnamemodify(expand('<sfile>'), ':h').'/dein-plugin-list.vim'
    call dein#begin(s:plugins_dir, [s:pluginList])
    execute 'source' s:pluginList
    call dein#end()
    call dein#save_state()
    if !has('vim_starting') && dein#check_install()
        call dein#install()
     endif

    Is it right ?

    The file pointed by the s:pluginList variable contains dein#add(...) calls
    Shougo
    @Shougo
    It is right if s:pluginList file path is valid.
    You should check it.
    Gontran Baerts
    @gbcreation
    ok, I see
    Now, if I change line 5 to let s:pluginList=fnamemodify(expand('<sfile>'), ':h').'/another-file.vim', is this change detected by Dein ?
    Wang Shidong
    @wsdjeg
    @gbcreation yes,I know,so it has been fixed,nice to hear
    Gontran Baerts
    @gbcreation
    Or does the script finish at line 3 ?
    Shougo
    @Shougo
    OK.
    I get it.
    You must specify the .vimrc file in dein#begin() 2nd argument.
    call dein#begin(s:plugins_dir, [s:pluginList]) just detect plugin list changes.
    Please read it.
    Gontran Baerts
    @gbcreation
    ok, i anderstand
    Shougo
    @Shougo
    call dein#begin(s:path, [expand('<sfile>')]
          \ + split(glob('~/.vim/rc/*.toml'), '\n'))
    This is my config. You should use expand('<sfile>')
    Gontran Baerts
    @gbcreation
    Yes, I see
    Thank you very much :)
    So I have to call dein#clear_state() manually after doing this change ?
    Shougo
    @Shougo
    You need call this one time.
    Gontran Baerts
    @gbcreation
    I use the blueyed/vim-diminactive plugin. I would like to lazy load it only the first time I split the window. What kind of event should I use ?
    Shougo
    @Shougo
    It seems enabled by DimInactive commands