From 89c93fc089ff06b151a1637ef9469cefa9678dce Mon Sep 17 00:00:00 2001 From: Tom Beynon Date: Fri, 30 Mar 2018 19:37:02 +0100 Subject: [PATCH] Mark source as volatile (#844) Deoplete expects to carry out the filtering of snippets by default, but the UltiSnips source uses UltiSnips#SnippetsInCurrentScope() which filters the returned snippets based on user input. Without is_volatile, Deoplete will cache the first set of results UltiSnips returns and keep trying to filter that, rather than getting a new set of results when the input changes. --- rplugin/python3/deoplete/sources/ultisnips.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rplugin/python3/deoplete/sources/ultisnips.py b/rplugin/python3/deoplete/sources/ultisnips.py index ba35dfc..4062fa9 100644 --- a/rplugin/python3/deoplete/sources/ultisnips.py +++ b/rplugin/python3/deoplete/sources/ultisnips.py @@ -7,6 +7,7 @@ class Source(Base): self.name = 'ultisnips' self.mark = '[US]' self.rank = 8 + self.is_volatile = True def gather_candidates(self, context): suggestions = []