diff options
author | Guangxiong Lin <[email protected]> | 2022-09-08 22:33:32 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-09-08 22:33:32 +0800 |
commit | 653b10f4d3d5b879e26b5737051716aa6633d424 (patch) | |
tree | 17e9796309394f65eaa3de937fd681c88e19933c /.vim/after | |
parent | 681023c9a5968b6c9f3a17403b9350b7411286dc (diff) | |
download | dotfiles-653b10f4d3d5b879e26b5737051716aa6633d424.tar.gz dotfiles-653b10f4d3d5b879e26b5737051716aa6633d424.tar.bz2 dotfiles-653b10f4d3d5b879e26b5737051716aa6633d424.zip |
Add more asyncomplete.vim related plugins
Diffstat (limited to '.vim/after')
-rw-r--r-- | .vim/after/plugin/asyncomplete.vim | 35 | ||||
-rw-r--r-- | .vim/after/plugin/minpac.vim | 4 |
2 files changed, 39 insertions, 0 deletions
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, + \ }, + \ })) diff --git a/.vim/after/plugin/minpac.vim b/.vim/after/plugin/minpac.vim index 96222b4..86545f5 100644 --- a/.vim/after/plugin/minpac.vim +++ b/.vim/after/plugin/minpac.vim @@ -57,6 +57,10 @@ function! InitMinpac() abort call minpac#add('https://github.com/prabirshrestha/asyncomplete.vim.git', {'type': 'opt'}) call minpac#add('https://github.com/prabirshrestha/asyncomplete-lsp.vim.git', {'type': 'opt'}) + call minpac#add('https://github.com/prabirshrestha/asyncomplete-ultisnips.vim.git', {'type': 'opt'}) + call minpac#add('https://github.com/prabirshrestha/asyncomplete-tags.vim.git', {'type': 'opt'}) + call minpac#add('https://github.com/prabirshrestha/asyncomplete-file.vim.git', {'type': 'opt'}) + call minpac#add('https://github.com/prabirshrestha/asyncomplete-buffer.vim.git', {'type': 'opt'}) call minpac#add('https://github.com/ludovicchabant/vim-gutentags.git', {'type': 'opt'}) call minpac#add('https://github.com/easymotion/vim-easymotion.git') |