parent
a75c92bb6a
commit
e4fc9a1136
@ -67,6 +67,7 @@ function! youcompleteme#Enable()
|
|||||||
autocmd InsertEnter * call s:OnInsertEnter()
|
autocmd InsertEnter * call s:OnInsertEnter()
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
call s:SetUpCpoptions()
|
||||||
call s:SetUpCompleteopt()
|
call s:SetUpCompleteopt()
|
||||||
call s:SetUpKeyMappings()
|
call s:SetUpKeyMappings()
|
||||||
|
|
||||||
@ -153,6 +154,13 @@ function! s:AllowedToCompleteInCurrentFile()
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
function! s:SetUpCpoptions()
|
||||||
|
" Without this flag in cpoptions, critical YCM mappings do not work. There's
|
||||||
|
" no way to not have this and have YCM working, so force the flag.
|
||||||
|
set cpoptions+=B
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
function! s:SetUpCompleteopt()
|
function! s:SetUpCompleteopt()
|
||||||
" Some plugins (I'm looking at you, vim-notes) change completeopt by for
|
" Some plugins (I'm looking at you, vim-notes) change completeopt by for
|
||||||
" instance adding 'longest'. This breaks YCM. So we force our settings.
|
" instance adding 'longest'. This breaks YCM. So we force our settings.
|
||||||
|
Loading…
Reference in New Issue
Block a user