aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-11-02 11:00:10 +0800
committerGuangxiong Lin <[email protected]>2022-11-02 11:00:10 +0800
commit369156a18fc528e94b6a7e49bb87ac94b8b0054d (patch)
treee35d1e5bcaa9d951da55dd08b7189a53467120db
parent7f294de4775af2fa458bf0e43fb7533d635a917e (diff)
downloaddotfiles-369156a18fc528e94b6a7e49bb87ac94b8b0054d.tar.gz
dotfiles-369156a18fc528e94b6a7e49bb87ac94b8b0054d.tar.bz2
dotfiles-369156a18fc528e94b6a7e49bb87ac94b8b0054d.zip
Add asyncomplete-omni
-rw-r--r--.vim/after/plugin/asyncomplete.vim11
-rw-r--r--.vim/after/plugin/minpac.vim1
2 files changed, 12 insertions, 0 deletions
diff --git a/.vim/after/plugin/asyncomplete.vim b/.vim/after/plugin/asyncomplete.vim
index a7d1974..9ede076 100644
--- a/.vim/after/plugin/asyncomplete.vim
+++ b/.vim/after/plugin/asyncomplete.vim
@@ -45,3 +45,14 @@ au User asyncomplete_setup call asyncomplete#register_source(asyncomplete#source
\ 'max_buffer_size': 5000000,
\ },
\ }))
+
+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,
+\ },
+\ }))
diff --git a/.vim/after/plugin/minpac.vim b/.vim/after/plugin/minpac.vim
index a2637dd..71b038a 100644
--- a/.vim/after/plugin/minpac.vim
+++ b/.vim/after/plugin/minpac.vim
@@ -65,6 +65,7 @@ function! InitMinpac() abort
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/yami-beta/asyncomplete-omni.vim', {'type': 'opt'})
" Some bugs are not fixed in the upstream repo. Switch back to the
" upstream repo after the bug is fixed.