Qusic / atom-youcompleteme

YouCompleteMe for Atom Editor
MIT License
82 stars 34 forks source link

atom snippets not working correctly #53

Closed dragonxlwang closed 8 years ago

dragonxlwang commented 8 years ago

As you can see, snippets disappears after I input more than one character. Please fix. untitled

Qusic commented 8 years ago

this cant be fixed for now. this package has to use a higher priority than atom snippets, or completions such as std::vector will be overriden.

dragonxlwang commented 8 years ago

@Qusic , n00b in coffee script. I just compared atom-ycm with atom-clang, it seems that they used a different priority settings. Their completion seems not having this kind of problem IIRC. Maybe this can be helpful

https://github.com/yasuyuky/autocomplete-clang/blob/master/lib/clang-provider.coffee

Qusic commented 8 years ago

One completion will override the other. You can't have both of them. It doesn't make sense to change the priority before we have better solution.

dragonxlwang commented 8 years ago

if I understand correctly, this is a issue with autocomplete-plus? Maybe ask them to consider allowing a larger pool of suggestions?

Qusic commented 8 years ago

Yes. autocomplete+ will merge completions to make each of them unique. https://github.com/atom/autocomplete-plus/blob/master/lib/autocomplete-manager.coffee#L318