23 lines
706 B
VimL
23 lines
706 B
VimL
" COC Edits
|
|
" Use tab for trigger completion with characters ahead and navigate.
|
|
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
|
|
" other plugin before putting this into your config.
|
|
|
|
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()
|
|
|
|
function! CheckBackSpace() abort
|
|
let col = col('.') - 1
|
|
return !col || getline('.')[col - 1] =~# '\s'
|
|
endfunction
|
|
|
|
let g:coc_snippet_next = '<tab>'
|
|
|
|
set runtimepath^=/home/xyvs/.vim/plugged/coc.nvim
|
|
filetype plugin indent on
|
|
syntax on
|