diff options
author | delphinus <me@delphinus.dev> | 2019-06-19 13:27:12 +0900 |
---|---|---|
committer | delphinus <me@delphinus.dev> | 2019-06-19 15:08:24 +0900 |
commit | f5a908bf99a45b2602d01e07816aa513459f0197 (patch) | |
tree | a59e74bcf369b7bfc1e6c797b39b9cce3acd11f2 /rplugin | |
parent | 1c71da5624fc46107cda4852add08fe34385dfd9 (diff) | |
download | ale-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.py | 1 |
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): |