From f5a908bf99a45b2602d01e07816aa513459f0197 Mon Sep 17 00:00:00 2001 From: delphinus Date: Wed, 19 Jun 2019 13:27:12 +0900 Subject: Add input_pattern setting for deoplete This option is used to determine if `min_pattern_length` is ignored. In usual, it does not start completion when the matched input string is shorter than `min_pattern_length`. But when the string matches `input_pattern`, it starts completion even when ths string is `''`. --- rplugin/python3/deoplete/sources/ale.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rplugin/python3/deoplete/sources/ale.py b/rplugin/python3/deoplete/sources/ale.py index 7f1c1d60..98c463e0 100644 --- a/rplugin/python3/deoplete/sources/ale.py +++ b/rplugin/python3/deoplete/sources/ale.py @@ -24,6 +24,7 @@ class Source(Base): self.rank = 1000 self.is_bytepos = True self.min_pattern_length = 1 + self.input_pattern = r'(\.|::|->)\w*$' # Returns an integer for the start position, as with omnifunc. def get_completion_position(self): -- cgit v1.2.3