Skip to content

Instantly share code, notes, and snippets.

@mcfiredrill
Created April 4, 2020 10:38
Show Gist options
  • Save mcfiredrill/c0fe8f295658e7bf00115bb7097cdc5d to your computer and use it in GitHub Desktop.
Save mcfiredrill/c0fe8f295658e7bf00115bb7097cdc5d to your computer and use it in GitHub Desktop.
" use <tab> for trigger completion and navigate to the next complete item
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~ '\s'
endfunction
inoremap <silent><expr> <tab>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<Tab>" :
\ coc#refresh()
inoremap <expr> <tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <s-tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
let g:coc_global_extensions = [
\ 'coc-ember',
\ 'coc-tailwindcss'
\ ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment