This commit is contained in:
Robert Altner 2024-06-07 11:06:31 +02:00
parent 1d1b604f61
commit 13408cacac
No known key found for this signature in database
GPG key ID: 58794C52DAF9EAD8

View file

@ -36,9 +36,9 @@ autocmd FileType fzf tnoremap <buffer><silent><ESC> <ESC>
inoremap <silent><expr> <TAB>
\ coc#pum#visible() ? coc#_select_confirm() :
\ coc#expandableOrJumpable() ? "\<C-r>=coc#rpc#request('doKeymap', ['snippets-expand-jump',''])\<CR>" :
\ CheckBackspace() ? "\<TAB>" :
\ coc#refresh()
\ coc#expandableOrJumpable() ? "\<C-r>=coc#rpc#request('doKeymap', ['snippets-expand-jump',''])\<CR>" :
\ "\<TAB>"
function! CheckBackspace() abort
let col = col('.') - 1