Skip to content

[Plugconf] Add a function invoked after plugin is loaded #196

Description

@tyru

Currently there is no function invoked after plugin is loaded.
s:config() is invoked before plugin is loaded.

https://eivy.github.io/2018/02/19/vim-volt.html

私はこれを回避するために、.vimrcに以下のように書いて、無理やり先にプラグインをロードするようにしています。

packadd github.com_Shougo_unite.vim
call unite#custom#profile('default', 'context', {'direction': 'belowright', 'winheight':10, 'auto-resize': 1, 'start_insert': 1})

NOTE

Now using autocmd VimEnter in s:config() can achieve this.
But more straightforward way is needed.

Activity

  1. added 2 commits that reference this issue on Mar 31, 2018
    0ed0708
    ce28e8b
  2. tyru commented on Mar 31, 2018

    @tyru
    MemberAuthor

    TODO

    • Deprecation of s:config() (new function name is s:on_load_pre())
    • Add s:on_load_post(), which is the function to be loaded after a plugin is loaded
    • Add volt migrate plugconf/config-func to replace old functions in plugconf files (Migration way of old plugconf file is needed #214)
  3. added a commit that references this issue on Mar 31, 2018
    9d10f50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions