Run CheckBackspace before expandableOrJumpable().
This commit is contained in:
4
init.vim
4
init.vim
@@ -59,13 +59,13 @@ endfunction
|
||||
|
||||
inoremap <silent><expr> <TAB>
|
||||
\ coc#pum#visible() ? coc#pum#next(1) :
|
||||
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#next()\<CR>" :
|
||||
\ CheckBackspace() ? "\<Tab>" :
|
||||
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#next()\<CR>" :
|
||||
\ coc#refresh()
|
||||
inoremap <silent><expr> <S-TAB>
|
||||
\ coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
|
||||
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#prev()\<CR>" :
|
||||
\ CheckBackspace() ? "\<S-Tab>" :
|
||||
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#prev()\<CR>" :
|
||||
\ coc#refresh()
|
||||
let g:coc_disable_startup_warning = 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user