aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vim/after/plugin/asyncomplete.vim25
1 files changed, 14 insertions, 11 deletions
diff --git a/.vim/after/plugin/asyncomplete.vim b/.vim/after/plugin/asyncomplete.vim
index 8e96762..7eda153 100644
--- a/.vim/after/plugin/asyncomplete.vim
+++ b/.vim/after/plugin/asyncomplete.vim
@@ -4,9 +4,10 @@ endif
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
-inoremap <expr> <cr> pumvisible() ? asyncomplete#close_popup() : "\<cr>"
+inoremap <expr> <cr> pumvisible() ? "\<c-y>" : "\<cr>"
let g:asyncomplete_auto_popup = 1
+let g:asyncomplete_auto_completeopt = 0
packadd asyncomplete.vim
packadd asyncomplete-lsp.vim
@@ -47,13 +48,15 @@ au User asyncomplete_setup call asyncomplete#register_source(asyncomplete#source
\ },
\ }))
-packadd asyncomplete-omni.vim
-autocmd User asyncomplete_setup call asyncomplete#register_source(asyncomplete#sources#omni#get_source_options({
-\ 'name': 'omni',
-\ 'allowlist': ['*'],
-\ 'blocklist': [],
-\ 'completor': function('asyncomplete#sources#omni#completor'),
-\ 'config': {
-\ 'show_source_kind': 1,
-\ },
-\ }))
+" asyncomplete-omni is buggy. Remove it temoperorily.
+
+" packadd asyncomplete-omni.vim
+" autocmd User asyncomplete_setup call asyncomplete#register_source(asyncomplete#sources#omni#get_source_options({
+" \ 'name': 'omni',
+" \ 'allowlist': ['*'],
+" \ 'blocklist': [],
+" \ 'completor': function('asyncomplete#sources#omni#completor'),
+" \ 'config': {
+" \ 'show_source_kind': 1,
+" \ },
+" \ }))