add coc symbols shortcut

This commit is contained in:
LordMZTE 2021-02-27 21:39:10 +01:00
parent 5b19ca6e7f
commit 7a7e1a81d1

View file

@ -72,6 +72,9 @@ nmap <silent> gr <Plug>(coc-references)
" Use K to show documentation in preview window.
nnoremap <silent> K :call <SID>show_documentation()<CR>
" Use space o to show symbols
nnoremap <silent> <space>o :CocList -I symbols<CR>
function! s:show_documentation()
if (index(['vim','help'], &filetype) >= 0)
execute 'h '.expand('<cword>')