Force space and dot to start complition
This commit is contained in:
parent
fca2c6d3e5
commit
f3fc624863
@ -91,6 +91,10 @@ function! s:check_back_space() abort
|
|||||||
let col = col('.') - 1
|
let col = col('.') - 1
|
||||||
return !col || getline('.')[col - 1] =~# '\s'
|
return !col || getline('.')[col - 1] =~# '\s'
|
||||||
endfunction
|
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
|
" Make <CR> auto-select the first completion item and notify coc.nvim to
|
||||||
" format on enter, <cr> could be remapped by other vim plugin
|
" format on enter, <cr> could be remapped by other vim plugin
|
||||||
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm()
|
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm()
|
||||||
|
Loading…
Reference in New Issue
Block a user