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

completed snippet error for complete whole method #323

Closed
wsdjeg opened this issue Jan 14, 2016 · 1 comment
Closed

completed snippet error for complete whole method #323

wsdjeg opened this issue Jan 14, 2016 · 1 comment

Comments

@wsdjeg
Copy link
Contributor

wsdjeg commented Jan 14, 2016

error for complete whole method

complete after @Override

classs Foo{
    @Override
    _    //here is cursor
}
word = public Object compute(Object object, BiFunction<? super Object, ? super Object, ? extends Object> bifunction) { 
Item.abbr = compute()
Item.menu = public Object compute(Object,BiFunction<? super Object, ? super Object, ? extends Object>)
Item.kind = m

snippets

}${1}

I think no need to close the }
and if I change let pairs = { '(' : ')', '{' : '}', '"' : '"' } to let pairs = { '(' : ')', '"' : '"' },this second issue is gone ,so I think the pairs should be different by filetype,even can be set by the users, it shoud be

let g:neosnippet#parser = {
     \ '_':{ '(' : ')', '{' : '}', '"' : '"' },  
     \ 'java':{ '(' : ')'}
     \}
@Shougo
Copy link
Owner

Shougo commented Jan 18, 2016

Fixed.

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