{"action":"created","comment":{"url":"https://api.github.com/repos/neovim/neovim/pulls/comments/70890473","id":70890473,"diff_hunk":"@@ -118,7 +118,38 @@ function! remote#host#RegisterPlugin(host, path, specs) abort\n endfunction\n \n \n-function! s:GetManifest() abort\n+\" Get the path to the rplugin manifest file.\n+function! s:GetManifestPath() abort\n+  let manifest_base = ''\n+\n+  if exists('$NVIM_RPLUGIN_MANIFEST')\n+    return fnamemodify($NVIM_RPLUGIN_MANIFEST, ':p')\n+  endif\n+\n+  let preferred = has('win32')\n+        \\ ? ['$LOCALAPPDATA', '~/AppData/Local']\n+        \\ : ['$XDG_DATA_HOME', '~/.local/share']\n+\n+  for dest in preferred\n+    if dest[0] == '$' && !exists(dest)\n+      continue\n+    endif\n+\n+    let dest = fnamemodify(expand(dest), ':p')\n+    if !empty(dest) && isdirectory(dest)\n+      let dest .= 'nvim/'\n+      call mkdir(dest, 'p', 700)","path":"runtime/autoload/remote/host.vim","position":null,"original_position":25,"commit_id":"e77605660f43b430be9d7ff4d9d9c0677ce2a2fe","original_commit_id":"24f1ddce2d691373dccab57fc0f3f3fcd8299759","user":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars.githubusercontent.com/u/1359421?v=3","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"body":"just be clear, I think what you had originally matches what we typically do. But worth seeing if QB passes anyway.","created_at":"2016-07-14T21:47:08Z","updated_at":"2016-07-14T21:47:08Z","html_url":"https://github.com/neovim/neovim/pull/5050#discussion_r70890473","pull_request_url":"https://api.github.com/repos/neovim/neovim/pulls/5050","_links":{"self":{"href":"https://api.github.com/repos/neovim/neovim/pulls/comments/70890473"},"html":{"href":"https://github.com/neovim/neovim/pull/5050#discussion_r70890473"},"pull_request":{"href":"https://api.github.com/repos/neovim/neovim/pulls/5050"}}},"pull_request":{"url":"https://api.github.com/repos/neovim/neovim/pulls/5050","id":77067632,"html_url":"https://github.com/neovim/neovim/pull/5050","diff_url":"https://github.com/neovim/neovim/pull/5050.diff","patch_url":"https://github.com/neovim/neovim/pull/5050.patch","issue_url":"https://api.github.com/repos/neovim/neovim/issues/5050","number":5050,"state":"open","locked":false,"title":"[RFC] rplugin manifest should live at XDG-style path","user":{"login":"tweekmonster","id":111942,"avatar_url":"https://avatars.githubusercontent.com/u/111942?v=3","gravatar_id":"","url":"https://api.github.com/users/tweekmonster","html_url":"https://github.com/tweekmonster","followers_url":"https://api.github.com/users/tweekmonster/followers","following_url":"https://api.github.com/users/tweekmonster/following{/other_user}","gists_url":"https://api.github.com/users/tweekmonster/gists{/gist_id}","starred_url":"https://api.github.com/users/tweekmonster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tweekmonster/subscriptions","organizations_url":"https://api.github.com/users/tweekmonster/orgs","repos_url":"https://api.github.com/users/tweekmonster/repos","events_url":"https://api.github.com/users/tweekmonster/events{/privacy}","received_events_url":"https://api.github.com/users/tweekmonster/received_events","type":"User","site_admin":false},"body":"Re: [Problem mentioned on reddit][1]\r\n\r\nIf `$MYVIMRC` and `:scriptnames` yields an unsuitable path, fallback to `$XDG_CONFIG_HOME/nvim/init.vim` if the directory exists.  Otherwise, throw an exception before a useless manifest is written.\r\n\r\nThis also doesn't allow the manifest to be written in `$VIMRUNTIME` in case the user happens to have write permissions there.\r\n\r\nI thought about using `$HOME/.nvim.-rplugin~` as the final fallback instead of throwing an exception, but that felt a little too presumptuous.\r\n\r\n[1]: https://www.reddit.com/r/neovim/comments/4s0uhj/how_to_updateremoteplugins_just_once_globally/\r\n\r\n","created_at":"2016-07-12T06:30:19Z","updated_at":"2016-07-14T21:47:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1580391f943447bc965b8c5f16ac8094f074d9c4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/neovim/neovim/pulls/5050/commits","review_comments_url":"https://api.github.com/repos/neovim/neovim/pulls/5050/comments","review_comment_url":"https://api.github.com/repos/neovim/neovim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/5050/comments","statuses_url":"https://api.github.com/repos/neovim/neovim/statuses/e77605660f43b430be9d7ff4d9d9c0677ce2a2fe","head":{"label":"tweekmonster:rplugin-fallback","ref":"rplugin-fallback","sha":"e77605660f43b430be9d7ff4d9d9c0677ce2a2fe","user":{"login":"tweekmonster","id":111942,"avatar_url":"https://avatars.githubusercontent.com/u/111942?v=3","gravatar_id":"","url":"https://api.github.com/users/tweekmonster","html_url":"https://github.com/tweekmonster","followers_url":"https://api.github.com/users/tweekmonster/followers","following_url":"https://api.github.com/users/tweekmonster/following{/other_user}","gists_url":"https://api.github.com/users/tweekmonster/gists{/gist_id}","starred_url":"https://api.github.com/users/tweekmonster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tweekmonster/subscriptions","organizations_url":"https://api.github.com/users/tweekmonster/orgs","repos_url":"https://api.github.com/users/tweekmonster/repos","events_url":"https://api.github.com/users/tweekmonster/events{/privacy}","received_events_url":"https://api.github.com/users/tweekmonster/received_events","type":"User","site_admin":false},"repo":{"id":60529590,"name":"neovim","full_name":"tweekmonster/neovim","owner":{"login":"tweekmonster","id":111942,"avatar_url":"https://avatars.githubusercontent.com/u/111942?v=3","gravatar_id":"","url":"https://api.github.com/users/tweekmonster","html_url":"https://github.com/tweekmonster","followers_url":"https://api.github.com/users/tweekmonster/followers","following_url":"https://api.github.com/users/tweekmonster/following{/other_user}","gists_url":"https://api.github.com/users/tweekmonster/gists{/gist_id}","starred_url":"https://api.github.com/users/tweekmonster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tweekmonster/subscriptions","organizations_url":"https://api.github.com/users/tweekmonster/orgs","repos_url":"https://api.github.com/users/tweekmonster/repos","events_url":"https://api.github.com/users/tweekmonster/events{/privacy}","received_events_url":"https://api.github.com/users/tweekmonster/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tweekmonster/neovim","description":"Vim-fork focused on extensibility and agility.","fork":true,"url":"https://api.github.com/repos/tweekmonster/neovim","forks_url":"https://api.github.com/repos/tweekmonster/neovim/forks","keys_url":"https://api.github.com/repos/tweekmonster/neovim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tweekmonster/neovim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tweekmonster/neovim/teams","hooks_url":"https://api.github.com/repos/tweekmonster/neovim/hooks","issue_events_url":"https://api.github.com/repos/tweekmonster/neovim/issues/events{/number}","events_url":"https://api.github.com/repos/tweekmonster/neovim/events","assignees_url":"https://api.github.com/repos/tweekmonster/neovim/assignees{/user}","branches_url":"https://api.github.com/repos/tweekmonster/neovim/branches{/branch}","tags_url":"https://api.github.com/repos/tweekmonster/neovim/tags","blobs_url":"https://api.github.com/repos/tweekmonster/neovim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tweekmonster/neovim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tweekmonster/neovim/git/refs{/sha}","trees_url":"https://api.github.com/repos/tweekmonster/neovim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tweekmonster/neovim/statuses/{sha}","languages_url":"https://api.github.com/repos/tweekmonster/neovim/languages","stargazers_url":"https://api.github.com/repos/tweekmonster/neovim/stargazers","contributors_url":"https://api.github.com/repos/tweekmonster/neovim/contributors","subscribers_url":"https://api.github.com/repos/tweekmonster/neovim/subscribers","subscription_url":"https://api.github.com/repos/tweekmonster/neovim/subscription","commits_url":"https://api.github.com/repos/tweekmonster/neovim/commits{/sha}","git_commits_url":"https://api.github.com/repos/tweekmonster/neovim/git/commits{/sha}","comments_url":"https://api.github.com/repos/tweekmonster/neovim/comments{/number}","issue_comment_url":"https://api.github.com/repos/tweekmonster/neovim/issues/comments{/number}","contents_url":"https://api.github.com/repos/tweekmonster/neovim/contents/{+path}","compare_url":"https://api.github.com/repos/tweekmonster/neovim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tweekmonster/neovim/merges","archive_url":"https://api.github.com/repos/tweekmonster/neovim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tweekmonster/neovim/downloads","issues_url":"https://api.github.com/repos/tweekmonster/neovim/issues{/number}","pulls_url":"https://api.github.com/repos/tweekmonster/neovim/pulls{/number}","milestones_url":"https://api.github.com/repos/tweekmonster/neovim/milestones{/number}","notifications_url":"https://api.github.com/repos/tweekmonster/neovim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tweekmonster/neovim/labels{/name}","releases_url":"https://api.github.com/repos/tweekmonster/neovim/releases{/id}","deployments_url":"https://api.github.com/repos/tweekmonster/neovim/deployments","created_at":"2016-06-06T13:23:26Z","updated_at":"2016-06-06T13:23:35Z","pushed_at":"2016-07-14T21:25:47Z","git_url":"git://github.com/tweekmonster/neovim.git","ssh_url":"git@github.com:tweekmonster/neovim.git","clone_url":"https://github.com/tweekmonster/neovim.git","svn_url":"https://github.com/tweekmonster/neovim","homepage":"https://salt.bountysource.com/teams/neovim","size":43488,"stargazers_count":0,"watchers_count":0,"language":"VimL","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"neovim:master","ref":"master","sha":"335be4272eea509fffed4c49f4266b58baa9a3c2","user":{"login":"neovim","id":6471485,"avatar_url":"https://avatars.githubusercontent.com/u/6471485?v=3","gravatar_id":"","url":"https://api.github.com/users/neovim","html_url":"https://github.com/neovim","followers_url":"https://api.github.com/users/neovim/followers","following_url":"https://api.github.com/users/neovim/following{/other_user}","gists_url":"https://api.github.com/users/neovim/gists{/gist_id}","starred_url":"https://api.github.com/users/neovim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neovim/subscriptions","organizations_url":"https://api.github.com/users/neovim/orgs","repos_url":"https://api.github.com/users/neovim/repos","events_url":"https://api.github.com/users/neovim/events{/privacy}","received_events_url":"https://api.github.com/users/neovim/received_events","type":"Organization","site_admin":false},"repo":{"id":16408992,"name":"neovim","full_name":"neovim/neovim","owner":{"login":"neovim","id":6471485,"avatar_url":"https://avatars.githubusercontent.com/u/6471485?v=3","gravatar_id":"","url":"https://api.github.com/users/neovim","html_url":"https://github.com/neovim","followers_url":"https://api.github.com/users/neovim/followers","following_url":"https://api.github.com/users/neovim/following{/other_user}","gists_url":"https://api.github.com/users/neovim/gists{/gist_id}","starred_url":"https://api.github.com/users/neovim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neovim/subscriptions","organizations_url":"https://api.github.com/users/neovim/orgs","repos_url":"https://api.github.com/users/neovim/repos","events_url":"https://api.github.com/users/neovim/events{/privacy}","received_events_url":"https://api.github.com/users/neovim/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/neovim/neovim","description":"Vim-fork focused on extensibility and agility.","fork":false,"url":"https://api.github.com/repos/neovim/neovim","forks_url":"https://api.github.com/repos/neovim/neovim/forks","keys_url":"https://api.github.com/repos/neovim/neovim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neovim/neovim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neovim/neovim/teams","hooks_url":"https://api.github.com/repos/neovim/neovim/hooks","issue_events_url":"https://api.github.com/repos/neovim/neovim/issues/events{/number}","events_url":"https://api.github.com/repos/neovim/neovim/events","assignees_url":"https://api.github.com/repos/neovim/neovim/assignees{/user}","branches_url":"https://api.github.com/repos/neovim/neovim/branches{/branch}","tags_url":"https://api.github.com/repos/neovim/neovim/tags","blobs_url":"https://api.github.com/repos/neovim/neovim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neovim/neovim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neovim/neovim/git/refs{/sha}","trees_url":"https://api.github.com/repos/neovim/neovim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neovim/neovim/statuses/{sha}","languages_url":"https://api.github.com/repos/neovim/neovim/languages","stargazers_url":"https://api.github.com/repos/neovim/neovim/stargazers","contributors_url":"https://api.github.com/repos/neovim/neovim/contributors","subscribers_url":"https://api.github.com/repos/neovim/neovim/subscribers","subscription_url":"https://api.github.com/repos/neovim/neovim/subscription","commits_url":"https://api.github.com/repos/neovim/neovim/commits{/sha}","git_commits_url":"https://api.github.com/repos/neovim/neovim/git/commits{/sha}","comments_url":"https://api.github.com/repos/neovim/neovim/comments{/number}","issue_comment_url":"https://api.github.com/repos/neovim/neovim/issues/comments{/number}","contents_url":"https://api.github.com/repos/neovim/neovim/contents/{+path}","compare_url":"https://api.github.com/repos/neovim/neovim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neovim/neovim/merges","archive_url":"https://api.github.com/repos/neovim/neovim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neovim/neovim/downloads","issues_url":"https://api.github.com/repos/neovim/neovim/issues{/number}","pulls_url":"https://api.github.com/repos/neovim/neovim/pulls{/number}","milestones_url":"https://api.github.com/repos/neovim/neovim/milestones{/number}","notifications_url":"https://api.github.com/repos/neovim/neovim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neovim/neovim/labels{/name}","releases_url":"https://api.github.com/repos/neovim/neovim/releases{/id}","deployments_url":"https://api.github.com/repos/neovim/neovim/deployments","created_at":"2014-01-31T13:39:22Z","updated_at":"2016-07-14T14:34:46Z","pushed_at":"2016-07-14T21:46:49Z","git_url":"git://github.com/neovim/neovim.git","ssh_url":"git@github.com:neovim/neovim.git","clone_url":"https://github.com/neovim/neovim.git","svn_url":"https://github.com/neovim/neovim","homepage":"https://salt.bountysource.com/teams/neovim","size":71298,"stargazers_count":19306,"watchers_count":19306,"language":"VimL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1364,"mirror_url":null,"open_issues_count":740,"forks":1364,"open_issues":740,"watchers":19306,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/neovim/neovim/pulls/5050"},"html":{"href":"https://github.com/neovim/neovim/pull/5050"},"issue":{"href":"https://api.github.com/repos/neovim/neovim/issues/5050"},"comments":{"href":"https://api.github.com/repos/neovim/neovim/issues/5050/comments"},"review_comments":{"href":"https://api.github.com/repos/neovim/neovim/pulls/5050/comments"},"review_comment":{"href":"https://api.github.com/repos/neovim/neovim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/neovim/neovim/pulls/5050/commits"},"statuses":{"href":"https://api.github.com/repos/neovim/neovim/statuses/e77605660f43b430be9d7ff4d9d9c0677ce2a2fe"}}}}
{"actor":{"display_login":"justinmk"}}