Skip to content

Instantly share code, notes, and snippets.

@Rio-Nyx
Created February 14, 2023 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rio-Nyx/00e7d66cc672f24b27351650bdab9e71 to your computer and use it in GitHub Desktop.
Save Rio-Nyx/00e7d66cc672f24b27351650bdab9e71 to your computer and use it in GitHub Desktop.
inoremap <silent><expr> <TAB>
\ pumvisible() ? coc#_select_confirm() :
\ coc#expandableOrJumpable() ?
\ "\<C-r>=coc#rpc#request('doKeymap', ['snippets-expand-jump',''])\<CR>" :
\ <SID>check_back_space() ? "\<TAB>" :
\ coc#refresh()
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
let g:coc_snippet_next = '<tab>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment