{"action":"opened","issue":{"url":"https://api.github.com/repos/Shougo/dein.vim/issues/276","repository_url":"https://api.github.com/repos/Shougo/dein.vim","labels_url":"https://api.github.com/repos/Shougo/dein.vim/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/Shougo/dein.vim/issues/276/comments","events_url":"https://api.github.com/repos/Shougo/dein.vim/issues/276/events","html_url":"https://github.com/Shougo/dein.vim/issues/276","id":322919477,"number":276,"title":"Custom Plugin Event Not Working","user":{"login":"weilbith","id":12543647,"avatar_url":"https://avatars1.githubusercontent.com/u/12543647?v=4","gravatar_id":"","url":"https://api.github.com/users/weilbith","html_url":"https://github.com/weilbith","followers_url":"https://api.github.com/users/weilbith/followers","following_url":"https://api.github.com/users/weilbith/following{/other_user}","gists_url":"https://api.github.com/users/weilbith/gists{/gist_id}","starred_url":"https://api.github.com/users/weilbith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weilbith/subscriptions","organizations_url":"https://api.github.com/users/weilbith/orgs","repos_url":"https://api.github.com/users/weilbith/repos","events_url":"https://api.github.com/users/weilbith/events{/privacy}","received_events_url":"https://api.github.com/users/weilbith/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-14T17:57:06Z","updated_at":"2018-05-14T17:57:06Z","closed_at":null,"author_association":"NONE","body":"# Problems summary\r\nUsing a non-standard event, provided by a plugin, does not work for lazy loading `on_event`.\r\nIn this case I use [limelight](https://github.com/junegunn/limelight.vim) which should been sourced at the `GoyoEnter` event thrown by [goyo](https://github.com/junegunn/goyo.vim)\r\n\r\n## Expected\r\nThe lazy plugin, with the condition to be sourced on an custom event, gets loaded as for any other standard event.\r\n\r\n## Environment Information (Required!)\r\n\r\n * dein.vim version(SHA1): 5940689e214d27f258805c24e76d86715622b2a6\r\n * OS: Ubuntu 16.4\r\n * Vim/neovim version: NVIM v0.2.2\r\n\r\n## Provide a minimal .vimrc with less than 50 lines (Required!)\r\n\r\n```vim\r\nlet s:dein_base_folder = '~/.cache/dein'\r\nexecute 'set runtimepath+=' . s:dein_base_folder . '/repos/github.com/Shougo/dein.vim'\r\n\r\nif dein#load_state(s:dein_base_folder)\r\n  call dein#begin(s:dein_base_folder, s:vimrcs)\r\n  \r\n  call dein#add('junegunn/goyo.vim')\r\n   \r\n  call dein#add('junegunn/limelight.vim', {\r\n         \\ 'name': 'lime-light',\r\n         \\ 'lazy': 1,\r\n         \\ 'on_event': 'GoyoEnter'\r\n         \\ })\r\n\r\n  call dein#end()\r\n  call dein#save_state()\r\nendif\r\n```\r\n\r\n\r\n## The reproduce ways from Vim starting (Required!)\r\n\r\n 1. Execute `:Goyo`, which throws the `GoyoEnter` event.\r\n 2. Check if _limelight_ is sourced (`:echo dein#is_sourced('lime-light')`)\r\n"}}
{"actor":{"display_login":"weilbith"}}