diff --git a/.vimrc b/.vimrc index b76b469..7c3a6bc 100644 --- a/.vimrc +++ b/.vimrc @@ -44,6 +44,18 @@ if isdirectory('./node_modules') && isdirectory('./node_modules/eslint') let g:coc_global_extensions += ['coc-eslint'] endif +" coc shortcuts +nnoremap gK :call CocAction('doHover') +nmap gd (coc-definition) +nmap gy (coc-type-definition) +nmap gr (coc-references) +nmap [g (coc-diagnostic-prev) +nmap ]g (coc-diagnostic-next) +nnoremap d :CocList diagnostics +nnoremap s :CocList -I symbols +nmap do (coc-codeaction) +nmap rn (coc-rename) + " style colorscheme nord