{"action":"created","comment":{"url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/pulls/comments/191058375","pull_request_review_id":123566414,"id":191058375,"diff_hunk":"@@ -262,13 +264,15 @@ function! s:remote_refresh(ctx, force) abort\n         let l:startpos = l:matchpos[1]\n         let l:endpos = l:matchpos[2]\n \n-        call asyncomplete#log('core', 's:remote_refresh', l:matchpos, a:ctx)\n+        call asyncomplete#log('core', 's:remote_refresh', l:name, l:matchpos, a:ctx)\n \n         let l:typed_len = l:endpos - l:startpos\n         if l:typed_len == 1\n             call add(l:sources_to_notify, l:name)\n         elseif has_key(s:matches, l:name) && s:matches[l:name]['refresh']\n             call add(l:sources_to_notify, l:name)\n+        elseif s:supports_smart_completion()\n+            call s:python_refresh_completions(a:ctx)","path":"autoload/asyncomplete.vim","position":23,"original_position":23,"commit_id":"17c16ff08abffcc3651165fcbacf5727cbc0461e","original_commit_id":"17c16ff08abffcc3651165fcbacf5727cbc0461e","user":{"login":"prabirshrestha","id":287744,"avatar_url":"https://avatars3.githubusercontent.com/u/287744?v=4","gravatar_id":"","url":"https://api.github.com/users/prabirshrestha","html_url":"https://github.com/prabirshrestha","followers_url":"https://api.github.com/users/prabirshrestha/followers","following_url":"https://api.github.com/users/prabirshrestha/following{/other_user}","gists_url":"https://api.github.com/users/prabirshrestha/gists{/gist_id}","starred_url":"https://api.github.com/users/prabirshrestha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabirshrestha/subscriptions","organizations_url":"https://api.github.com/users/prabirshrestha/orgs","repos_url":"https://api.github.com/users/prabirshrestha/repos","events_url":"https://api.github.com/users/prabirshrestha/events{/privacy}","received_events_url":"https://api.github.com/users/prabirshrestha/received_events","type":"User","site_admin":false},"body":"Queue in next tick for better performance. ","created_at":"2018-05-26T20:54:07Z","updated_at":"2018-05-26T20:54:08Z","html_url":"https://github.com/prabirshrestha/asyncomplete.vim/pull/66#discussion_r191058375","pull_request_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/pulls/66","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/pulls/comments/191058375"},"html":{"href":"https://github.com/prabirshrestha/asyncomplete.vim/pull/66#discussion_r191058375"},"pull_request":{"href":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/pulls/66"}}},"pull_request":{"url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/pulls/66","id":190758650,"html_url":"https://github.com/prabirshrestha/asyncomplete.vim/pull/66","diff_url":"https://github.com/prabirshrestha/asyncomplete.vim/pull/66.diff","patch_url":"https://github.com/prabirshrestha/asyncomplete.vim/pull/66.patch","issue_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/issues/66","number":66,"state":"open","locked":false,"title":"added support for fuzzy search via  let g:asyncomplete_smart_completion=1","user":{"login":"prabirshrestha","id":287744,"avatar_url":"https://avatars3.githubusercontent.com/u/287744?v=4","gravatar_id":"","url":"https://api.github.com/users/prabirshrestha","html_url":"https://github.com/prabirshrestha","followers_url":"https://api.github.com/users/prabirshrestha/followers","following_url":"https://api.github.com/users/prabirshrestha/following{/other_user}","gists_url":"https://api.github.com/users/prabirshrestha/gists{/gist_id}","starred_url":"https://api.github.com/users/prabirshrestha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabirshrestha/subscriptions","organizations_url":"https://api.github.com/users/prabirshrestha/orgs","repos_url":"https://api.github.com/users/prabirshrestha/repos","events_url":"https://api.github.com/users/prabirshrestha/events{/privacy}","received_events_url":"https://api.github.com/users/prabirshrestha/received_events","type":"User","site_admin":false},"body":"\r\n- [x] Supports vim8 with `has('lua')` and `exists('##TextChangedP')`\r\n- [ ] Supports neovim with  `has('nvim-0.2.2')` and `exists('##TextChangedP')`. neovim 0.2.2 already comes with lua support inbuilt. Currently it is throwing some error.\r\n\r\nFor now I will not expose the function to provide custom smart completion i.e. `s:filter_completion_items_lua(prefix, matches)` but should be fairly simple in the future.\r\n\r\nPlease give it a try. Currently it uses lua for library for smart completion so if anyone has a better algorithm I'm very open to replace it. Please give it a try, Will leave this PR open for few days and try it at real code in work before I merge this.","created_at":"2018-05-26T20:51:02Z","updated_at":"2018-05-26T20:54:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"21f16dc46c1b91a87da4cf77548ac8f8d9b4ab01","assignee":{"login":"prabirshrestha","id":287744,"avatar_url":"https://avatars3.githubusercontent.com/u/287744?v=4","gravatar_id":"","url":"https://api.github.com/users/prabirshrestha","html_url":"https://github.com/prabirshrestha","followers_url":"https://api.github.com/users/prabirshrestha/followers","following_url":"https://api.github.com/users/prabirshrestha/following{/other_user}","gists_url":"https://api.github.com/users/prabirshrestha/gists{/gist_id}","starred_url":"https://api.github.com/users/prabirshrestha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabirshrestha/subscriptions","organizations_url":"https://api.github.com/users/prabirshrestha/orgs","repos_url":"https://api.github.com/users/prabirshrestha/repos","events_url":"https://api.github.com/users/prabirshrestha/events{/privacy}","received_events_url":"https://api.github.com/users/prabirshrestha/received_events","type":"User","site_admin":false},"assignees":[{"login":"prabirshrestha","id":287744,"avatar_url":"https://avatars3.githubusercontent.com/u/287744?v=4","gravatar_id":"","url":"https://api.github.com/users/prabirshrestha","html_url":"https://github.com/prabirshrestha","followers_url":"https://api.github.com/users/prabirshrestha/followers","following_url":"https://api.github.com/users/prabirshrestha/following{/other_user}","gists_url":"https://api.github.com/users/prabirshrestha/gists{/gist_id}","starred_url":"https://api.github.com/users/prabirshrestha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabirshrestha/subscriptions","organizations_url":"https://api.github.com/users/prabirshrestha/orgs","repos_url":"https://api.github.com/users/prabirshrestha/repos","events_url":"https://api.github.com/users/prabirshrestha/events{/privacy}","received_events_url":"https://api.github.com/users/prabirshrestha/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":515835227,"url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/pulls/66/commits","review_comments_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/pulls/66/comments","review_comment_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/issues/66/comments","statuses_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/statuses/17c16ff08abffcc3651165fcbacf5727cbc0461e","head":{"label":"prabirshrestha:prshrest/fuzzy","ref":"prshrest/fuzzy","sha":"17c16ff08abffcc3651165fcbacf5727cbc0461e","user":{"login":"prabirshrestha","id":287744,"avatar_url":"https://avatars3.githubusercontent.com/u/287744?v=4","gravatar_id":"","url":"https://api.github.com/users/prabirshrestha","html_url":"https://github.com/prabirshrestha","followers_url":"https://api.github.com/users/prabirshrestha/followers","following_url":"https://api.github.com/users/prabirshrestha/following{/other_user}","gists_url":"https://api.github.com/users/prabirshrestha/gists{/gist_id}","starred_url":"https://api.github.com/users/prabirshrestha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabirshrestha/subscriptions","organizations_url":"https://api.github.com/users/prabirshrestha/orgs","repos_url":"https://api.github.com/users/prabirshrestha/repos","events_url":"https://api.github.com/users/prabirshrestha/events{/privacy}","received_events_url":"https://api.github.com/users/prabirshrestha/received_events","type":"User","site_admin":false},"repo":{"id":78613735,"name":"asyncomplete.vim","full_name":"prabirshrestha/asyncomplete.vim","owner":{"login":"prabirshrestha","id":287744,"avatar_url":"https://avatars3.githubusercontent.com/u/287744?v=4","gravatar_id":"","url":"https://api.github.com/users/prabirshrestha","html_url":"https://github.com/prabirshrestha","followers_url":"https://api.github.com/users/prabirshrestha/followers","following_url":"https://api.github.com/users/prabirshrestha/following{/other_user}","gists_url":"https://api.github.com/users/prabirshrestha/gists{/gist_id}","starred_url":"https://api.github.com/users/prabirshrestha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabirshrestha/subscriptions","organizations_url":"https://api.github.com/users/prabirshrestha/orgs","repos_url":"https://api.github.com/users/prabirshrestha/repos","events_url":"https://api.github.com/users/prabirshrestha/events{/privacy}","received_events_url":"https://api.github.com/users/prabirshrestha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/prabirshrestha/asyncomplete.vim","description":"async completion in pure vim script for vim8 and neovim","fork":false,"url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim","forks_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/forks","keys_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/teams","hooks_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/hooks","issue_events_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/issues/events{/number}","events_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/events","assignees_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/assignees{/user}","branches_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/branches{/branch}","tags_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/tags","blobs_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/git/refs{/sha}","trees_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/statuses/{sha}","languages_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/languages","stargazers_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/stargazers","contributors_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/contributors","subscribers_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/subscribers","subscription_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/subscription","commits_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/commits{/sha}","git_commits_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/git/commits{/sha}","comments_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/comments{/number}","issue_comment_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/issues/comments{/number}","contents_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/contents/{+path}","compare_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/merges","archive_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/downloads","issues_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/issues{/number}","pulls_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/pulls{/number}","milestones_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/milestones{/number}","notifications_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/labels{/name}","releases_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/releases{/id}","deployments_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/deployments","created_at":"2017-01-11T07:27:10Z","updated_at":"2018-05-26T19:44:08Z","pushed_at":"2018-05-26T20:51:03Z","git_url":"git://github.com/prabirshrestha/asyncomplete.vim.git","ssh_url":"git@github.com:prabirshrestha/asyncomplete.vim.git","clone_url":"https://github.com/prabirshrestha/asyncomplete.vim.git","svn_url":"https://github.com/prabirshrestha/asyncomplete.vim","homepage":"","size":79,"stargazers_count":234,"watchers_count":234,"language":"Vim script","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":16,"open_issues":6,"watchers":234,"default_branch":"master"}},"base":{"label":"prabirshrestha:master","ref":"master","sha":"79b060e2e9e1c59bdfdc97b44bcbf38dfce9dff9","user":{"login":"prabirshrestha","id":287744,"avatar_url":"https://avatars3.githubusercontent.com/u/287744?v=4","gravatar_id":"","url":"https://api.github.com/users/prabirshrestha","html_url":"https://github.com/prabirshrestha","followers_url":"https://api.github.com/users/prabirshrestha/followers","following_url":"https://api.github.com/users/prabirshrestha/following{/other_user}","gists_url":"https://api.github.com/users/prabirshrestha/gists{/gist_id}","starred_url":"https://api.github.com/users/prabirshrestha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabirshrestha/subscriptions","organizations_url":"https://api.github.com/users/prabirshrestha/orgs","repos_url":"https://api.github.com/users/prabirshrestha/repos","events_url":"https://api.github.com/users/prabirshrestha/events{/privacy}","received_events_url":"https://api.github.com/users/prabirshrestha/received_events","type":"User","site_admin":false},"repo":{"id":78613735,"name":"asyncomplete.vim","full_name":"prabirshrestha/asyncomplete.vim","owner":{"login":"prabirshrestha","id":287744,"avatar_url":"https://avatars3.githubusercontent.com/u/287744?v=4","gravatar_id":"","url":"https://api.github.com/users/prabirshrestha","html_url":"https://github.com/prabirshrestha","followers_url":"https://api.github.com/users/prabirshrestha/followers","following_url":"https://api.github.com/users/prabirshrestha/following{/other_user}","gists_url":"https://api.github.com/users/prabirshrestha/gists{/gist_id}","starred_url":"https://api.github.com/users/prabirshrestha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabirshrestha/subscriptions","organizations_url":"https://api.github.com/users/prabirshrestha/orgs","repos_url":"https://api.github.com/users/prabirshrestha/repos","events_url":"https://api.github.com/users/prabirshrestha/events{/privacy}","received_events_url":"https://api.github.com/users/prabirshrestha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/prabirshrestha/asyncomplete.vim","description":"async completion in pure vim script for vim8 and neovim","fork":false,"url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim","forks_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/forks","keys_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/teams","hooks_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/hooks","issue_events_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/issues/events{/number}","events_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/events","assignees_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/assignees{/user}","branches_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/branches{/branch}","tags_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/tags","blobs_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/git/refs{/sha}","trees_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/statuses/{sha}","languages_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/languages","stargazers_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/stargazers","contributors_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/contributors","subscribers_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/subscribers","subscription_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/subscription","commits_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/commits{/sha}","git_commits_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/git/commits{/sha}","comments_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/comments{/number}","issue_comment_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/issues/comments{/number}","contents_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/contents/{+path}","compare_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/merges","archive_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/downloads","issues_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/issues{/number}","pulls_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/pulls{/number}","milestones_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/milestones{/number}","notifications_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/labels{/name}","releases_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/releases{/id}","deployments_url":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/deployments","created_at":"2017-01-11T07:27:10Z","updated_at":"2018-05-26T19:44:08Z","pushed_at":"2018-05-26T20:51:03Z","git_url":"git://github.com/prabirshrestha/asyncomplete.vim.git","ssh_url":"git@github.com:prabirshrestha/asyncomplete.vim.git","clone_url":"https://github.com/prabirshrestha/asyncomplete.vim.git","svn_url":"https://github.com/prabirshrestha/asyncomplete.vim","homepage":"","size":79,"stargazers_count":234,"watchers_count":234,"language":"Vim script","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":16,"open_issues":6,"watchers":234,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/pulls/66"},"html":{"href":"https://github.com/prabirshrestha/asyncomplete.vim/pull/66"},"issue":{"href":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/issues/66"},"comments":{"href":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/issues/66/comments"},"review_comments":{"href":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/pulls/66/comments"},"review_comment":{"href":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/pulls/66/commits"},"statuses":{"href":"https://api.github.com/repos/prabirshrestha/asyncomplete.vim/statuses/17c16ff08abffcc3651165fcbacf5727cbc0461e"}},"author_association":"OWNER"}}
{"actor":{"display_login":"prabirshrestha"}}