From 5299eff292495106ad978c071e75e9ce45c392eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tanguy=20G=C3=A9r=C3=B4me?= Date: Fri, 5 Mar 2021 17:41:53 +0100 Subject: [PATCH] added common vim-coc shortcuts --- .vimrc | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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