Merge pull request #1517 from frankier/nul-c-space-neovim

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:
Val Markovic 2015-06-08 15:32:59 -07:00
commit 9d63dc2bb6

View File

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