Reputation: 1933
I use various plugins for autocompletion (All Autocomplete, CodeIntel and more) and actually, I want to keep all of them. But sometimes, I have duplicates in my list of completion which is kind of annoying. Is there an easy way to fix this?
Thanks for your help!
Upvotes: 0
Views: 282
Reputation: 16065
If you're willing to modify the sublime_plugin.py
file in your ST installation folder, then this is possible.
These instructions are valid for build 3125/3126, but be aware that you will lose your changes and need to re-apply them (if relevant) when you upgrade ST when a new build is released.
sublime_plugin.py
def on_query_completions
return (completions, flags)
with return (list(set(completions)), flags)
"You may need to use a more advanced solution to remove duplicates if your plugins are suggesting multiple completions with the same trigger.
Upvotes: 2