15 lines
629 B
Django/Jinja
15 lines
629 B
Django/Jinja
{{ add_source('prabirshrestha/asyncomplete.vim') -}}
|
|
let g:asyncomplete_auto_popup = 1
|
|
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
|
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
|
inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<cr>"
|
|
imap <c-space> <Plug>(asyncomplete_force_refresh)
|
|
|
|
{{ add_source('prabirshrestha/asyncomplete-file.vim') -}}
|
|
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')
|
|
\ }))
|