Try coc.vim for completion

This commit is contained in:
Alexander Gehrke 2019-12-13 10:47:11 +01:00
parent bb247f7bdd
commit 6e8e05ae44
3 changed files with 9 additions and 5 deletions

View file

@ -4,15 +4,17 @@ if !exists('g:deoplete#omni#input_patterns')
endif
" <C-h>, <BS>: close popup and delete backword char.
inoremap <expr><C-h> deoplete#smart_close_popup()."\<C-h>"
inoremap <expr><BS> deoplete#smart_close_popup()."\<C-h>"
"inoremap <expr><C-h> deoplete#smart_close_popup()."\<C-h>"
"inoremap <expr><BS> deoplete#smart_close_popup()."\<C-h>"
inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<TAB>" :
\ "\<C-x><C-o>"
\ coc#refresh()
"\ '\<C-x><C-o>'
function! s:check_back_space()
let col = col('.') - 1
return !col || getline('.')[col - 1] =~ '\s'
endfunction
inoremap <silent><expr> <c-space> coc#refresh()