diff options
author | w0rp <devw0rp@gmail.com> | 2019-05-16 20:11:42 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2019-05-16 20:11:42 +0100 |
commit | 975cc7af8fbabe234a220c84e56b7ff719d8d959 (patch) | |
tree | 04448d747affeb4f917be6a6a3f651a4e4210d97 /rplugin/python3/deoplete/sources | |
parent | d0f2a0ae940ef67649453de40c0ca3488d4dcec4 (diff) | |
download | ale-975cc7af8fbabe234a220c84e56b7ff719d8d959.zip |
Fix #2492 - Remove all Deoplete support for now
Diffstat (limited to 'rplugin/python3/deoplete/sources')
-rw-r--r-- | rplugin/python3/deoplete/sources/ale.py | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/rplugin/python3/deoplete/sources/ale.py b/rplugin/python3/deoplete/sources/ale.py deleted file mode 100644 index 7ed2f6c0..00000000 --- a/rplugin/python3/deoplete/sources/ale.py +++ /dev/null @@ -1,54 +0,0 @@ -""" -A Deoplete source for ALE completion via tsserver and LSP. -""" -__author__ = 'Joao Paulo, w0rp' - -try: - from deoplete.source.base import Base -except ImportError: - # Mock the Base class if deoplete isn't available, as mock isn't available - # in the Docker image. - class Base(object): - def __init__(self, vim): - pass - - -# Make sure this code is valid in Python 2, used for running unit tests. -class Source(Base): - - def __init__(self, vim): - super(Source, self).__init__(vim) - - self.name = 'ale' - self.mark = '[L]' - self.rank = 100 - self.is_bytepos = True - self.min_pattern_length = 1 - - # Returns an integer for the start position, as with omnifunc. - def get_completion_position(self): - return self.vim.call('ale#completion#GetCompletionPosition') - - def gather_candidates(self, context): - # Stop early if ALE can't provide completion data for this buffer. - if not self.vim.call('ale#completion#CanProvideCompletions'): - return None - - if context.get('is_refresh'): - context['is_async'] = False - - if context['is_async']: - # Result is the same as for omnifunc, or None. - result = self.vim.call('ale#completion#GetCompletionResult') - - if result is not None: - context['is_async'] = False - - return result - else: - context['is_async'] = True - - # Request some completion results. - self.vim.call('ale#completion#GetCompletions', 'deoplete') - - return [] |