Remove autoseleting first completion

This commit is contained in:
Marcin Woźniak 2021-10-30 10:02:59 +02:00
parent be61285b8a
commit 0b070e88de
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -96,11 +96,6 @@ function! s:check_back_space() abort
return !col || getline('.')[col - 1] =~# '\s'
endfunction
" Make <CR> auto-select the first completion item and notify coc.nvim to
" format on enter, <cr> could be remapped by other vim plugin
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm()
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
" Use tab for trigger completion with characters ahead and navigate.
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
" other plugin before putting this into your config.