mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Added autocompletion for coc-python in vim
This commit is contained in:
parent
9f1b789efd
commit
b70df52f09
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user