{"action":"created","issue":{"url":"https://api.github.com/repos/junegunn/vim-plug/issues/347","labels_url":"https://api.github.com/repos/junegunn/vim-plug/issues/347/labels{/name}","comments_url":"https://api.github.com/repos/junegunn/vim-plug/issues/347/comments","events_url":"https://api.github.com/repos/junegunn/vim-plug/issues/347/events","html_url":"https://github.com/junegunn/vim-plug/issues/347","id":121559881,"number":347,"title":"Support functions (or booleans) for `on`.","user":{"login":"gaffneyc","id":7095,"avatar_url":"https://avatars.githubusercontent.com/u/7095?v=3","gravatar_id":"","url":"https://api.github.com/users/gaffneyc","html_url":"https://github.com/gaffneyc","followers_url":"https://api.github.com/users/gaffneyc/followers","following_url":"https://api.github.com/users/gaffneyc/following{/other_user}","gists_url":"https://api.github.com/users/gaffneyc/gists{/gist_id}","starred_url":"https://api.github.com/users/gaffneyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaffneyc/subscriptions","organizations_url":"https://api.github.com/users/gaffneyc/orgs","repos_url":"https://api.github.com/users/gaffneyc/repos","events_url":"https://api.github.com/users/gaffneyc/events{/privacy}","received_events_url":"https://api.github.com/users/gaffneyc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/junegunn/vim-plug/labels/duplicate","name":"duplicate","color":"cccccc"},{"url":"https://api.github.com/repos/junegunn/vim-plug/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/junegunn/vim-plug/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-10T19:29:08Z","updated_at":"2015-12-11T15:14:38Z","closed_at":"2015-12-11T01:10:22Z","body":"There are a couple plugins in my config that don't work in all environments. It would be nice to be able to disable them using on and passing method or just a boolean.\r\n\r\nFor example:\r\n```vim\r\nPlug 'kassio/neoterm', { 'on': has('nvim') }\r\nPlug 'zerowidth/vim-copy-as-rtf', { 'on': has('mac') }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/junegunn/vim-plug/issues/comments/163960524","html_url":"https://github.com/junegunn/vim-plug/issues/347#issuecomment-163960524","issue_url":"https://api.github.com/repos/junegunn/vim-plug/issues/347","id":163960524,"user":{"login":"junegunn","id":700826,"avatar_url":"https://avatars.githubusercontent.com/u/700826?v=3","gravatar_id":"","url":"https://api.github.com/users/junegunn","html_url":"https://github.com/junegunn","followers_url":"https://api.github.com/users/junegunn/followers","following_url":"https://api.github.com/users/junegunn/following{/other_user}","gists_url":"https://api.github.com/users/junegunn/gists{/gist_id}","starred_url":"https://api.github.com/users/junegunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junegunn/subscriptions","organizations_url":"https://api.github.com/users/junegunn/orgs","repos_url":"https://api.github.com/users/junegunn/repos","events_url":"https://api.github.com/users/junegunn/events{/privacy}","received_events_url":"https://api.github.com/users/junegunn/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T15:14:38Z","updated_at":"2015-12-11T15:14:38Z","body":"```vim\r\nlet nvim_only = has('nvim') ? {} : {'on': []}\r\n\r\nPlug 'foo/nvim-only1', nvim_only\r\nPlug 'foo/nvim-only2', nvim_only\r\n```\r\n\r\n:)"}}