Update init.vim

This commit is contained in:
nnduc 2023-11-28 07:13:14 +00:00
parent f517bea650
commit 3d68c910e2

View File

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