mirror of
1
0
Fork 0

Fix bug when typing 'Enter'.

This commit is contained in:
Kurtis Moxley 2022-08-13 13:13:58 +08:00
parent be700b9c7f
commit 612e140ab9
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
" Make <CR> to accept selected completion item or notify coc.nvim to format
" <C-g>u breaks current undo, please make your own choice.
inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm()
\: "\<C-g>u\<CR>\<cr>=coc#on_enter()\<CR>"
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Vim-autoformat
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""