Skip to content
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

javascript snippets issue #208

Closed
unclechu opened this issue Sep 16, 2015 · 4 comments
Closed

javascript snippets issue #208

unclechu opened this issue Sep 16, 2015 · 4 comments

Comments

@unclechu
Copy link

For example I have snippet:

snippet ::
        .prototype.

When I type this:

bar::

End press snippet key, it transforms to:

bar.prototype.

But if I type this:

foo.bar::

Snippet key doesn't work, it just added \t:

foo.bar::>---
ajzafar added a commit that referenced this issue Sep 18, 2015
This should be what we want. See also #208.
@ajzafar
Copy link
Collaborator

ajzafar commented Sep 18, 2015

This should be fixed in e2d294b. Let me know how it works.

@unclechu
Copy link
Author

@ajzafar now it works correct! Thanks a lot!

@unclechu unclechu reopened this Sep 18, 2015
@unclechu
Copy link
Author

Here the example of code that I need to write:

SocialSubFieldsCollection.__super__.initialize.apply(this, arguments);

I try to write:

SocialSubFieldsCollection.__super__.initialize.ap

Here the snippet: https://github.com/unclechu/vimrc2/blob/master/.vim/snippets/javascript.snippets#L104-L105
When I have space before .ap it calls snippet-autocomplete, but in this case it doesn't. But still works when I type full snippet name .apply. Then it means we have issue with snippet-autocomplete when we haven't space before snippet name, right?

@ajzafar
Copy link
Collaborator

ajzafar commented Sep 19, 2015

@unclechu I am going to open a new issue for that, #209.

@ajzafar ajzafar closed this as completed Sep 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants