summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorJerko Steiner <jerko.steiner@gmail.com>2019-01-07 17:55:55 +0000
committerw0rp <w0rp@users.noreply.github.com>2019-01-07 17:55:55 +0000
commit0fcd5e79a9be71027df6d7e77034d530fa9bf959 (patch)
tree1df17f03c74cc75b8b5b609037e20cce38e04dff /plugin
parent5bbe77101db18968fde65210956e54750d7ff4f5 (diff)
downloadale-0fcd5e79a9be71027df6d7e77034d530fa9bf959.zip
Add ability to manually trigger completion menu (#2177)
* Add ability to manually trigger completion menu * Mention :ALEComplete in completion docs * Add test for ALEComplete
Diffstat (limited to 'plugin')
-rw-r--r--plugin/ale.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim
index f57a495c..4af59a91 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -204,6 +204,8 @@ command! -bar ALEDocumentation :call ale#hover#ShowDocumentationAtCursor()
" Search for appearances of a symbol, such as a type name or function name.
command! -nargs=1 ALESymbolSearch :call ale#symbol#Search(<q-args>)
+command! -bar ALEComplete :call ale#completion#AlwaysGetCompletions()
+
" <Plug> mappings for commands
nnoremap <silent> <Plug>(ale_previous) :ALEPrevious<Return>
nnoremap <silent> <Plug>(ale_previous_wrap) :ALEPreviousWrap<Return>
@@ -229,6 +231,7 @@ nnoremap <silent> <Plug>(ale_go_to_definition_in_vsplit) :ALEGoToDefinitionInVSp
nnoremap <silent> <Plug>(ale_find_references) :ALEFindReferences<Return>
nnoremap <silent> <Plug>(ale_hover) :ALEHover<Return>
nnoremap <silent> <Plug>(ale_documentation) :ALEDocumentation<Return>
+inoremap <silent> <Plug>(ale_complete) <C-\><C-O>:ALEComplete<Return>
" Set up autocmd groups now.
call ale#events#Init()