-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expand only with white space afterwards for conditional $VIM snippet #39
Comments
Agree. let g:vsnip_integ_confirm_only_on_explicit_key_mapping = v:true
imap <CR> <Plug>(vsnip-integ-cofnrim) In this setting, vim-vsnip-integ wont expand snippet when press the char that is not (I'm not native English speaker so it's helpful if you suggest config key name). |
What would be the difference from Having a sort of "forced expand on completion" could be useful indeed. Are the settings above already available? maybe i could test them. PS: config names seems fine! I am not very sure about |
The vim-vsnip-integ will expand snippet automatically when the vim's vim fires So we provides |
I did not know! Thanks for explaining it! That sounds nice! |
Hello,
I've been tinkering for a bit to allow some kind of context aware snippet expansion (similar to the context in UltiSnips).
In my particular case i am trying to define some snippets that only get expanded while in a LaTeX math environment.
I found that defining the snippet body as
"${VIM: IsMathZone() ? \"<actual snippet>\" : \"<repeat prefix>\"}
actually works.The issue is that this kind of snippet only automatically expand upon selection (using mucomplete) only if i have a space afterwards.
Example:
$test_snippet$
does not expand,$test_snippet $
does expand.Similarly:
does not expand, but
does.
Possibly related to #22, is there a way to decide how the auto expansion behaves?
The text was updated successfully, but these errors were encountered: