mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-04 09:23:44 +08:00
Add separated func for deoplete
Deoplete needs `get_complete_position` method and it has a different signature. It already fetches the input string and attempts to detect the position with `\k*` regexp patterns.
This commit is contained in:
1 parent
f5a908bf99
commit
e0f8304860
2 files changed
+8
-2
No files matched your search
@@ -215,6 +215,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
|
||||
|
||||
Reference in new issue
Block a user