From 6c20c6589d4220076d939cf72b6c0752891c779b Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Tue, 1 Jan 2019 13:14:56 +0100 Subject: [PATCH] More coc keybindings --- init.vim | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/init.vim b/init.vim index 9853ad1..6269e45 100644 --- a/init.vim +++ b/init.vim @@ -233,3 +233,16 @@ nnoremap c :Denite coc-command nnoremap s :Denite coc-service " Show links of current buffer nnoremap l :Denite coc-link +nmap gd (coc-definition) +nmap gy (coc-type-definition) +nmap gi (coc-implementation) +nmap gr (coc-references) +" Use K for show documentation in preview window +nnoremap K :call show_documentation() +function! s:show_documentation() + if &filetype == 'vim' + execute 'h '.expand('') + else + call CocAction('doHover') + endif +endfunction