Setting updatetime to 2000 if user allows

This commit is contained in:
Strahinja Val Markovic 2012-08-02 20:32:29 -07:00
parent 45cccd09ac
commit 287d01c8b3
2 changed files with 11 additions and 3 deletions

View File

@ -38,6 +38,10 @@ function! youcompleteme#Enable()
return
endif
if g:ycm_allow_changing_updatetime
set ut=2000
endif
augroup youcompleteme
autocmd!
autocmd CursorMovedI * call s:OnCursorMovedInsertMode()

View File

@ -27,13 +27,17 @@ endif
let g:loaded_youcompleteme = 1
let g:ycm_min_num_of_chars_for_completion =
\ get(g:, 'ycm_min_num_of_chars_for_completion', 2)
\ get( g:, 'ycm_min_num_of_chars_for_completion', 2 )
let g:ycm_filetypes_to_ignore =
\ get(g:, 'ycm_filetypes_to_ignore', { 'notes' : 1 } )
\ get( g:, 'ycm_filetypes_to_ignore', { 'notes' : 1 } )
let g:ycm_clang_completion_enabled =
\ get(g:, 'ycm_clang_completion_enabled', 1)
\ get( g:, 'ycm_clang_completion_enabled', 1 )
let g:ycm_allow_changing_updatetime =
\ get( g:, 'ycm_clang_completion_enabled', 1 )
" This is basic vim plugin boilerplate
let s:save_cpo = &cpo