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
    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
    call dein#add('blueyed/vim-diminactive', {'lazy': 1})
    works.
    It is enabled by DimInactive... commands. But you cannot complete the command names.
    If you want to complete them, you need to specify the commands by on_cmd.
    Gontran Baerts
    @gbcreation
    Actually, I don't use DimInactive... commands. The plugin is enabled as soon as it is loaded.
    s:setup() is called at the end of the plugin script
    Shougo
    @Shougo
    I think you should use 'path': '.*'
    The plugin is loaded after you opened a file.
    Gontran Baerts
    @gbcreation
    This is not exactly what I would like to have. I don't need this plugin when I open a file, but only if I have more than one window.
    Shougo
    @Shougo
    Dein has not the loading feature.
    Gontran Baerts
    @gbcreation
    ok