diff options
Diffstat (limited to 'conf/keymaps.vim')
-rw-r--r-- | conf/keymaps.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/conf/keymaps.vim b/conf/keymaps.vim index d68b8c4..afef3ca 100644 --- a/conf/keymaps.vim +++ b/conf/keymaps.vim @@ -153,8 +153,9 @@ 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>\<c-r>=coc#on_enter()\<CR>" +inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm() : + \"\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>" +let g:coc_snippet_next = '<tab>' nmap <silent> gp <Plug>(coc-diagnostic-prev) nmap <silent> gn <Plug>(coc-diagnostic-next) |