Add ability to manually trigger completion menu (#2177)

* Add ability to manually trigger completion menu
* Mention :ALEComplete in completion docs
* Add test for ALEComplete
This commit is contained in:
Jerko Steiner authored and w0rp committed 2019-01-07 17:55:55 +00:00
1 parent 5bbe77101d
commit 0fcd5e79a9
4 files changed
+45

No files matched your search

+6
View File
@@ -509,6 +509,12 @@ function! ale#completion#GetCompletions() abort
return
endif
call ale#completion#AlwaysGetCompletions()
endfunction
" This function can be used to manually trigger autocomplete, even when
" g:ale_completion_enabled is set to false
function! ale#completion#AlwaysGetCompletions() abort
let [l:line, l:column] = getcurpos()[1:2]
let l:prefix = ale#completion#GetPrefix(&filetype, l:line, l:column)