Update init.vim

This commit is contained in:
nnduc 2023-11-24 09:50:27 +00:00
parent 30482107dc
commit f517bea650

View File

@ -52,6 +52,7 @@ inoremap <silent><expr> <TAB>
\ coc#expandableOrJumpable() ? "\<C-r>=coc#rpc#request('doKeymap', ['snippets-expand-jump',''])\<CR>" :
\ CheckBackSpace() ? "\<TAB>" :
\ coc#refresh()
inoremap <silent><expr> <CR> coc#pum#visible() ? coc#_select_confirm() : coc#refresh()
function! CheckBackSpace() abort
let col = col('.') - 1