From 653b10f4d3d5b879e26b5737051716aa6633d424 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Thu, 8 Sep 2022 22:33:32 +0800 Subject: Add more asyncomplete.vim related plugins --- .vim/after/plugin/asyncomplete.vim | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to '.vim/after/plugin/asyncomplete.vim') diff --git a/.vim/after/plugin/asyncomplete.vim b/.vim/after/plugin/asyncomplete.vim index 380d873..a7d1974 100644 --- a/.vim/after/plugin/asyncomplete.vim +++ b/.vim/after/plugin/asyncomplete.vim @@ -10,3 +10,38 @@ let g:asyncomplete_auto_popup = 1 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': ['*'], + \ 'completor': function('asyncomplete#sources#buffer#completor'), + \ 'config': { + \ 'max_buffer_size': 5000000, + \ }, + \ })) -- cgit v1.2.3