{"action":"created","issue":{"url":"https://api.github.com/repos/justmao945/vim-clang/issues/107","repository_url":"https://api.github.com/repos/justmao945/vim-clang","labels_url":"https://api.github.com/repos/justmao945/vim-clang/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/justmao945/vim-clang/issues/107/comments","events_url":"https://api.github.com/repos/justmao945/vim-clang/issues/107/events","html_url":"https://github.com/justmao945/vim-clang/pull/107","id":192808815,"number":107,"title":"g:clang_auto doesn't stop autocompletion after loading the plugin","user":{"login":"crr0004","id":6213793,"avatar_url":"https://avatars.githubusercontent.com/u/6213793?v=3","gravatar_id":"","url":"https://api.github.com/users/crr0004","html_url":"https://github.com/crr0004","followers_url":"https://api.github.com/users/crr0004/followers","following_url":"https://api.github.com/users/crr0004/following{/other_user}","gists_url":"https://api.github.com/users/crr0004/gists{/gist_id}","starred_url":"https://api.github.com/users/crr0004/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crr0004/subscriptions","organizations_url":"https://api.github.com/users/crr0004/orgs","repos_url":"https://api.github.com/users/crr0004/repos","events_url":"https://api.github.com/users/crr0004/events{/privacy}","received_events_url":"https://api.github.com/users/crr0004/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-01T10:37:20Z","updated_at":"2016-12-23T07:53:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/justmao945/vim-clang/pulls/107","html_url":"https://github.com/justmao945/vim-clang/pull/107","diff_url":"https://github.com/justmao945/vim-clang/pull/107.diff","patch_url":"https://github.com/justmao945/vim-clang/pull/107.patch"},"body":"When setting the option `g:clang_auto` to 0 you have to set it **before** the plugin is loaded otherwise it won't have an effect, and will auto complete no matter what.\r\n\r\nThis is because the plugin uses mappings I.E\r\n```\r\nif g:clang_auto   \" Auto completion\r\n    inoremap <expr> <buffer> . <SID>CompleteDot()\r\n    inoremap <expr> <buffer> > <SID>CompleteArrow()\r\n    if &filetype == 'cpp'\r\n      inoremap <expr> <buffer> : <SID>CompleteColon()\r\n    endif\r\n  endif\r\n```"},"comment":{"url":"https://api.github.com/repos/justmao945/vim-clang/issues/comments/268952831","html_url":"https://github.com/justmao945/vim-clang/pull/107#issuecomment-268952831","issue_url":"https://api.github.com/repos/justmao945/vim-clang/issues/107","id":268952831,"user":{"login":"crr0004","id":6213793,"avatar_url":"https://avatars.githubusercontent.com/u/6213793?v=3","gravatar_id":"","url":"https://api.github.com/users/crr0004","html_url":"https://github.com/crr0004","followers_url":"https://api.github.com/users/crr0004/followers","following_url":"https://api.github.com/users/crr0004/following{/other_user}","gists_url":"https://api.github.com/users/crr0004/gists{/gist_id}","starred_url":"https://api.github.com/users/crr0004/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crr0004/subscriptions","organizations_url":"https://api.github.com/users/crr0004/orgs","repos_url":"https://api.github.com/users/crr0004/repos","events_url":"https://api.github.com/users/crr0004/events{/privacy}","received_events_url":"https://api.github.com/users/crr0004/received_events","type":"User","site_admin":false},"created_at":"2016-12-23T07:53:15Z","updated_at":"2016-12-23T07:53:15Z","body":"This fixes that issue. You can set while running VIM and after loading your plugins."}}
{"actor":{"display_login":"crr0004"}}