GithubHelp home page GithubHelp logo

Wrong help for "on_source"? about dein.vim HOT 5 CLOSED

rcmdnk avatar rcmdnk commented on May 20, 2024
Wrong help for "on_source"?

from dein.vim.

Comments (5)

wsdjeg avatar wsdjeg commented on May 20, 2024

I think there is no error,this means a.vim is after you try to begin load b.vim.if you say a.vim is before b.vim,but what is the time ,when you start your vim ,it is also before b.vim

from dein.vim.

Shougo avatar Shougo commented on May 20, 2024

No. It is after. Closing.
before is depends feature.

from dein.vim.

rcmdnk avatar rcmdnk commented on May 20, 2024

sorry, in example above,
"a.vim" is loaded before "b.vim", isn't it?

Actually, I could confirm it.

If "a.vim" depends on "b.vim",
then "a.vim" is loaded after b.vim, because a.vim depends on b.vim.

Maybe i just misunderstanding the sentence,
but "a.vim loaded before b.vim" is correct, right?
This is actually "on_source" function.
And this is why "b.vim" must be lazy. ("b.vim" musts not be loaded beforeaa "a.vim")

from dein.vim.

rcmdnk avatar rcmdnk commented on May 20, 2024

In the help of NeoBundle, on_source is written like:

                                            neobundle-options-on_source
            on_source       (List) or (String)
            Load the bundle when the list bundles are loaded.
            Note: If they are not autoload bundles, "on_source"
            hooks are called when VimEnter auto command.
            You can call them manually by neobundle#call_hook().
            Note: The plugins must be lazy loaded plugins.

            For example:
            if neobundle#tap('plugin-B.vim')
              call neobundle#config({
                    \  'on_source' : [ 'plugin-A.vim' ]
                    \ })
              call neobundle#untap()
            endif

            plugin-B is loaded before plugin-A is loaded.

This explains as before.
(plugin-B corresponds to a.vim and plugin-A corresponds to b.vim in above)

I could obtain same order results in both NeoBundle and dein,
so that I think dein's on_source's help should be similar to NeoBundle's one,
at least it is not after.

from dein.vim.

Shougo avatar Shougo commented on May 20, 2024

I get it. Fixed.

from dein.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.