summaryrefslogtreecommitdiff
path: root/rplugin
diff options
context:
space:
mode:
authordelphinus <me@delphinus.dev>2019-06-19 13:27:12 +0900
committerdelphinus <me@delphinus.dev>2019-06-19 15:08:24 +0900
commitf5a908bf99a45b2602d01e07816aa513459f0197 (patch)
treea59e74bcf369b7bfc1e6c797b39b9cce3acd11f2 /rplugin
parent1c71da5624fc46107cda4852add08fe34385dfd9 (diff)
downloadale-f5a908bf99a45b2602d01e07816aa513459f0197.zip
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 `''`.
Diffstat (limited to 'rplugin')
-rw-r--r--rplugin/python3/deoplete/sources/ale.py1
1 files changed, 1 insertions, 0 deletions
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):