Remap <Nul> to <C-Space> regardless of gui_running since it is an unreliable way of detecting terminals in neovim

This commit is contained in:
Frankie Robertson 2015-06-03 14:33:56 +03:00
parent c2d962dddb
commit 63a7aa9daf

View File

@ -177,8 +177,8 @@ function! s:SetUpKeyMappings()
let invoke_key = g:ycm_key_invoke_completion
" Inside the console, <C-Space> is passed as <Nul> to Vim
if invoke_key ==# '<C-Space>' && !has('gui_running')
let invoke_key = '<Nul>'
if invoke_key ==# '<C-Space>'
imap <Nul> <C-Space>
endif
" <c-x><c-o> trigger omni completion, <c-p> deselects the first completion