{"action":"created","issue":{"url":"https://api.github.com/repos/Shougo/neosnippet.vim/issues/402","repository_url":"https://api.github.com/repos/Shougo/neosnippet.vim","labels_url":"https://api.github.com/repos/Shougo/neosnippet.vim/issues/402/labels{/name}","comments_url":"https://api.github.com/repos/Shougo/neosnippet.vim/issues/402/comments","events_url":"https://api.github.com/repos/Shougo/neosnippet.vim/issues/402/events","html_url":"https://github.com/Shougo/neosnippet.vim/issues/402","id":261778444,"number":402,"title":"Functions not recognized by #enable_completed_snippet","user":{"login":"TxHawks","id":5658514,"avatar_url":"https://avatars2.githubusercontent.com/u/5658514?v=4","gravatar_id":"","url":"https://api.github.com/users/TxHawks","html_url":"https://github.com/TxHawks","followers_url":"https://api.github.com/users/TxHawks/followers","following_url":"https://api.github.com/users/TxHawks/following{/other_user}","gists_url":"https://api.github.com/users/TxHawks/gists{/gist_id}","starred_url":"https://api.github.com/users/TxHawks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TxHawks/subscriptions","organizations_url":"https://api.github.com/users/TxHawks/orgs","repos_url":"https://api.github.com/users/TxHawks/repos","events_url":"https://api.github.com/users/TxHawks/events{/privacy}","received_events_url":"https://api.github.com/users/TxHawks/received_events","type":"User","site_admin":false},"labels":[{"id":518339395,"url":"https://api.github.com/repos/Shougo/neosnippet.vim/labels/won't%20fix","name":"won't fix","color":"c2e0c6","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-09-29T21:41:06Z","updated_at":"2017-10-02T05:52:53Z","closed_at":"2017-10-01T13:06:34Z","author_association":"NONE","body":"I have the following javascript code:\r\n```js\r\nfunction test(a, b) { return a* b; }\r\n```\r\n\r\nWith the following neosnippet configuration:\r\n```vim\r\n  let g:neosnippet#enable_completed_snippet = 1\r\n\r\n  imap <C-e>     <Plug>(neosnippet_expand_or_jump)\r\n  smap <C-e>     <Plug>(neosnippet_expand_or_jump)\r\n  xmap <C-e>     <Plug>(neosnippet_expand_target)\r\n\r\n  \" Marker concealment\r\n  if has('conceal')\r\n    set conceallevel=2 concealcursor=niv\r\n  endif\r\n```\r\n\r\nWhen I type `function` in the following line and then `<c-e>`, the `function` snippet is expanded as expected. However, nothing happens when I type `test` and then `<c-e>`\r\n\r\nA minimal rc file reproducing this behavior can be found [here](http://dev.txh.io/minimal.vim)\r\n\r\n`nvim --version`:\r\n```sh\r\nNVIM v0.2.1-dev\r\nBuild type: Release\r\nCompilation: /usr/local/Homebrew/Library/Homebrew/shims/super/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_MSGPACK_HAS_FLOAT32 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -I/tmp/neovim-20170821-82934-fnjf1/build/config -I/tmp/neovim-20170821-82934-fnjf1/src -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/gettext/include -I/usr/include -I/tmp/neovim-20170821-82934-fnjf1/build/src/nvim/auto -I/tmp/neovim-20170821-82934-fnjf1/build/include\r\nCompiled by txh@frontier\r\n\r\nFeatures: +acl +iconv +jemalloc +tui\r\nSee \":help feature-compile\"\r\n\r\n   system vimrc file: \"$VIM/sysinit.vim\"\r\n  fall-back for $VIM: \"/usr/local/Cellar/neovim/HEAD-8d1ccb6_1/share/nvim\"\r\n```"},"comment":{"url":"https://api.github.com/repos/Shougo/neosnippet.vim/issues/comments/333446449","html_url":"https://github.com/Shougo/neosnippet.vim/issues/402#issuecomment-333446449","issue_url":"https://api.github.com/repos/Shougo/neosnippet.vim/issues/402","id":333446449,"user":{"login":"TxHawks","id":5658514,"avatar_url":"https://avatars2.githubusercontent.com/u/5658514?v=4","gravatar_id":"","url":"https://api.github.com/users/TxHawks","html_url":"https://github.com/TxHawks","followers_url":"https://api.github.com/users/TxHawks/followers","following_url":"https://api.github.com/users/TxHawks/following{/other_user}","gists_url":"https://api.github.com/users/TxHawks/gists{/gist_id}","starred_url":"https://api.github.com/users/TxHawks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TxHawks/subscriptions","organizations_url":"https://api.github.com/users/TxHawks/orgs","repos_url":"https://api.github.com/users/TxHawks/repos","events_url":"https://api.github.com/users/TxHawks/events{/privacy}","received_events_url":"https://api.github.com/users/TxHawks/received_events","type":"User","site_admin":false},"created_at":"2017-10-02T05:52:53Z","updated_at":"2017-10-02T05:52:53Z","author_association":"NONE","body":"Behavior is the same when I pick a candidate that does include the function\nprototype (from tern or the language server). I'll upload a gif later when\nI'm in front of a computer\n\nOn Mon, Oct 2, 2017, 04:27 Shougo <notifications@github.com> wrote:\n\n> Not sure why, but it doesn't seen to work\n>\n> You have selected test candidate, but it does not contains the function\n> prototype.\n>\n> Please see:\n>\n> The candidate must be contains the function prototype\n>\n> One thing I noticed is that when I select the candidate from the\n> completion list, it completes test not test(. Is that the issue?\n>\n> It is not the problem.\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/Shougo/neosnippet.vim/issues/402#issuecomment-333421660>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AFZXkn1o5BELAaaD6J08IadJWZbQWM8uks5soDwKgaJpZM4PpRE_>\n> .\n>\n"}}
{"actor":{"display_login":"TxHawks"}}