mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-03 01:53:30 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user