Created
April 4, 2020 10:38
-
-
Save mcfiredrill/c0fe8f295658e7bf00115bb7097cdc5d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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