aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-04-19 20:27:20 +0800
committerGuangxiong Lin <[email protected]>2023-04-19 20:27:20 +0800
commit97e91b68a00b9c2f4c76dca951bfaa3fbbf3547b (patch)
treefcde15b395f78ace50121637f367de059a8c16a7
parenta6690a8c63030b1df667eab859bfe327706577dd (diff)
downloaddotfiles-97e91b68a00b9c2f4c76dca951bfaa3fbbf3547b.tar.gz
dotfiles-97e91b68a00b9c2f4c76dca951bfaa3fbbf3547b.tar.bz2
dotfiles-97e91b68a00b9c2f4c76dca951bfaa3fbbf3547b.zip
vim: remove buggy asyncomplete-omni
-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,
+" \ },
+" \ }))