Force space and dot to start complition

This commit is contained in:
Marcin Woźniak 2021-10-24 15:47:54 +02:00
parent fca2c6d3e5
commit f3fc624863
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -91,6 +91,10 @@ function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
" Use <leader .> to trigger completion.
inoremap <silent><expr> <leader>. coc#refresh()
" Make <CR> auto-select the first completion item and notify coc.nvim to
" format on enter, <cr> could be remapped by other vim plugin
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm()