Added autocompletion for coc-python in vim

This commit is contained in:
Vlad Doster 2019-12-31 23:58:12 -05:00
parent 9f1b789efd
commit b70df52f09

View File

@ -111,6 +111,24 @@ set clipboard+=unnamedplus
" Update binds when sxhkdrc is updated. " Update binds when sxhkdrc is updated.
autocmd BufWritePost *sxhkdrc !pkill -USR1 sxhkd autocmd BufWritePost *sxhkdrc !pkill -USR1 sxhkd
" coc stuff " coc stuff
set nobackup
set nowritebackup
" Use tab for trigger completion with characters ahead and navigate.
" Use command ':verbose imap <tab>' to make sure tab is not mapped by other plugin.
inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<TAB>" :
\ coc#refresh()
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
" You will have bad experience for diagnostic messages when it's default 4000. " You will have bad experience for diagnostic messages when it's default 4000.
set updatetime=300 set updatetime=300