Created
March 16, 2018 19:06
-
-
Save bbtdev/17f4565d29ecb29e43b675deb079eff3 to your computer and use it in GitHub Desktop.
asyncomplete
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Plug 'prabirshrestha/asyncomplete.vim' | |
Plug 'prabirshrestha/asyncomplete-buffer.vim' | |
Plug 'prabirshrestha/asyncomplete-tags.vim' | |
Plug 'yami-beta/asyncomplete-omni.vim' | |
Plug 'prabirshrestha/asyncomplete-file.vim' | |
Plug 'prabirshrestha/asyncomplete-necovim.vim' | |
call asyncomplete#register_source(asyncomplete#sources#buffer#get_source_options({ | |
\ 'name': 'buffer', | |
\ 'whitelist': ['*'], | |
\ 'priority': 10, | |
\ 'blacklist': ['go'], | |
\ 'completor': function('asyncomplete#sources#buffer#completor'), | |
\ })) | |
au User asyncomplete_setup call asyncomplete#register_source(asyncomplete#sources#tags#get_source_options({ | |
\ 'name': 'tags', | |
\ 'whitelist': ['ruby'], | |
\ 'priority': '9', | |
\ 'completor': function('asyncomplete#sources#tags#completor'), | |
\ 'config': { | |
\ 'max_file_size': -1, | |
\ }, | |
\ })) | |
call asyncomplete#register_source(asyncomplete#sources#omni#get_source_options({ | |
\ 'name': 'omni', | |
\ 'whitelist': ['*'], | |
\ 'priority': '7', | |
\ 'blacklist': ['html'], | |
\ 'completor': function('asyncomplete#sources#omni#completor') | |
\ })) | |
au User asyncomplete_setup call asyncomplete#register_source(asyncomplete#sources#necovim#get_source_options({ | |
\ 'name': 'necovim', | |
\ 'whitelist': ['vim'], | |
\ 'completor': function('asyncomplete#sources#necovim#completor'), | |
\ })) | |
au User asyncomplete_setup call asyncomplete#register_source(asyncomplete#sources#file#get_source_options({ | |
\ 'name': 'file', | |
\ 'whitelist': ['*'], | |
\ 'priority': 10, | |
\ 'completor': function('asyncomplete#sources#file#completor') | |
\ })) | |
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>" | |
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>" | |
inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<cr>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment