Coc: highlight after 500ms
This commit is contained in:
parent
262d74f57b
commit
aa57053d30
2
init.vim
2
init.vim
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user