Coc: highlight after 500ms

This commit is contained in:
Oliver Hartmann 2019-02-19 10:58:33 +01:00
parent 262d74f57b
commit aa57053d30

View File

@ -208,9 +208,11 @@ let g:chromatica#enable_at_startup=1
" ===================COC=============================
inoremap <silent><expr> <c-space> coc#refresh()
autocmd CursorHold * silent call CocActionAsync('highlight')
set updatetime=500 " After ms should CursorHold trigger
" Remap for format selected region
vmap <leader>f <Plug>(coc-format-selected)
nmap <leader>f <Plug>(coc-format-selected)
nmap <leader>r <Plug>(coc-rename)
" Use `:Format` for format current buffer
command! -nargs=0 Format :call CocAction('format')