mirror of
https://github.com/prabirshrestha/asyncomplete.vim.git
synced 2026-06-04 11:18:40 +02:00
25 lines
1.1 KiB
VimL
25 lines
1.1 KiB
VimL
if exists('g:asyncomplete_loaded')
|
|
finish
|
|
endif
|
|
let g:asyncomplete_loaded = 1
|
|
|
|
if get(g:, 'asyncomplete_enable_for_all', 1)
|
|
augroup asyncomplete_enable
|
|
au!
|
|
au BufEnter * if exists('b:asyncomplete_enable') == 0 | call asyncomplete#enable_for_buffer() | endif
|
|
augroup END
|
|
endif
|
|
|
|
let g:asyncomplete_auto_popup = get(g:, 'asyncomplete_auto_popup', 1)
|
|
let g:asyncomplete_completion_delay = get(g:, 'asyncomplete_completion_delay', 100)
|
|
let g:asyncomplete_default_refresh_pattern = get(g:, 'asyncomplete_default_refresh_pattern', '\(\k\+$\|\.$\|>$\|:$\)')
|
|
let g:asyncomplete_log_file = get(g:, 'asyncomplete_log_file', '')
|
|
let g:asyncomplete_remove_duplicates = get(g:, 'asyncomplete_remove_duplicates', 0)
|
|
|
|
" Setting it to true may slow/hang vim especially on slow are sources such as asyncomplete-lsp.vim
|
|
" use asyncomplete_force_refersh to retrive the latest autocomplete results instead.
|
|
let g:asyncomplete_force_refresh_on_context_changed = get(g:, 'asyncomplete_force_refresh_on_context_changed', 0)
|
|
|
|
" imap <c-space> <Plug>(asyncomplete_force_refresh)
|
|
inoremap <silent> <expr> <Plug>(asyncomplete_force_refresh) asyncomplete#force_refresh()
|