if has('nvim') finish endif finish inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" let g:asyncomplete_auto_popup = 1 let g:asyncomplete_auto_completeopt = 0 packadd asyncomplete.vim packadd asyncomplete-lsp.vim packadd asyncomplete-ultisnips.vim au User asyncomplete_setup call asyncomplete#register_source(asyncomplete#sources#ultisnips#get_source_options({ \ 'name': 'ultisnips', \ 'allowlist': ['*'], \ 'completor': function('asyncomplete#sources#ultisnips#completor'), \ })) " packadd asyncomplete-tags.vim " au User asyncomplete_setup call asyncomplete#register_source(asyncomplete#sources#tags#get_source_options({ " \ 'name': 'tags', " \ 'allowlist': ['*'], " \ 'completor': function('asyncomplete#sources#tags#completor'), " \ 'config': { " \ 'max_file_size': 50000000, " \ }, " \ })) packadd asyncomplete-file.vim au User asyncomplete_setup call asyncomplete#register_source(asyncomplete#sources#file#get_source_options({ \ 'name': 'file', \ 'allowlist': ['*'], \ 'priority': 10, \ 'completor': function('asyncomplete#sources#file#completor') \ })) packadd asyncomplete-buffer.vim au User asyncomplete_setup call asyncomplete#register_source(asyncomplete#sources#buffer#get_source_options({ \ 'name': 'buffer', \ 'allowlist': ['*'], \ 'blocklist': ['markdown'], \ 'completor': function('asyncomplete#sources#buffer#completor'), \ 'config': { \ 'max_buffer_size': 5000000, \ }, \ })) " 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, " \ }, " \ }))