Change function names and make them public.
This commit is contained in:
parent
2be6adda06
commit
abdf38a055
@ -61,7 +61,7 @@ function! youcompleteme#Enable()
|
|||||||
|
|
||||||
call s:SetUpSigns()
|
call s:SetUpSigns()
|
||||||
call s:SetUpSyntaxHighlighting()
|
call s:SetUpSyntaxHighlighting()
|
||||||
call s:SetupCursorAutocmd()
|
call youcompleteme#EnableCursorMovedAutocommands()
|
||||||
|
|
||||||
if g:ycm_allow_changing_updatetime && &updatetime > 2000
|
if g:ycm_allow_changing_updatetime && &updatetime > 2000
|
||||||
set ut=2000
|
set ut=2000
|
||||||
@ -808,7 +808,7 @@ endfunction
|
|||||||
|
|
||||||
command! YcmDiags call s:ShowDiagnostics()
|
command! YcmDiags call s:ShowDiagnostics()
|
||||||
|
|
||||||
function s:SetupCursorAutocmd()
|
function youcompleteme#EnableCursorMovedAutocommands()
|
||||||
augroup ycmcompletemecursormove
|
augroup ycmcompletemecursormove
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd CursorMovedI * call s:OnCursorMovedInsertMode()
|
autocmd CursorMovedI * call s:OnCursorMovedInsertMode()
|
||||||
@ -816,14 +816,14 @@ function s:SetupCursorAutocmd()
|
|||||||
augroup END
|
augroup END
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
command! YcmUnlock call s:SetupCursorAutocmd()
|
command! YcmUnlock call youcompleteme#EnableCursorMovedAutocommands()
|
||||||
|
|
||||||
function s:RemoveCursorAutocmd()
|
function youcompleteme#DisableCursorMovedAutocommands()
|
||||||
autocmd! ycmcompletemecursormove CursorMoved *
|
autocmd! ycmcompletemecursormove CursorMoved *
|
||||||
autocmd! ycmcompletemecursormove CursorMovedI *
|
autocmd! ycmcompletemecursormove CursorMovedI *
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
command! YcmLock call s:RemoveCursorAutocmd()
|
command! YcmLock call youcompleteme#DisableCursorMovedAutocommands()
|
||||||
|
|
||||||
" This is basic vim plugin boilerplate
|
" This is basic vim plugin boilerplate
|
||||||
let &cpo = s:save_cpo
|
let &cpo = s:save_cpo
|
||||||
|
Loading…
Reference in New Issue
Block a user