diff options
author | w0rp <w0rp@users.noreply.github.com> | 2019-07-14 10:29:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-14 10:29:03 +0100 |
commit | 36a50111b91d05afc4ed92a5b5415d0c5527dc6b (patch) | |
tree | 3e79ccf9a7ba8e878685ad10da4af08306cf1d29 /autoload | |
parent | abb38955d3acd452e37c15e7bae62022d1153859 (diff) | |
parent | a3521de64e8dfc2e8dbfc562fbc73502ba3e09ce (diff) | |
download | ale-36a50111b91d05afc4ed92a5b5415d0c5527dc6b.zip |
Merge pull request #2601 from delphinus/feature/better-completion-for-deoplete
Show more candidates for Deoplete completion
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/completion.vim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/autoload/ale/completion.vim b/autoload/ale/completion.vim index 43d84ea6..c0e8abd9 100644 --- a/autoload/ale/completion.vim +++ b/autoload/ale/completion.vim @@ -60,7 +60,8 @@ let s:omni_start_map = { \ '<default>': '\v[a-zA-Z$_][a-zA-Z$_0-9]*$', \} -" A map of exact characters for triggering LSP completions. +" A map of exact characters for triggering LSP completions. Do not forget to +" update self.input_patterns in ale.py in updating entries in this map. let s:trigger_character_map = { \ '<default>': ['.'], \ 'typescript': ['.', '''', '"'], @@ -217,6 +218,10 @@ function! ale#completion#GetCompletionPosition() abort return l:column - len(l:match) - 1 endfunction +function! ale#completion#GetCompletionPositionForDeoplete(input) abort + return match(a:input, '\k*$') +endfunction + function! ale#completion#GetCompletionResult() abort if exists('b:ale_completion_result') return b:ale_completion_result |