mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-13 15:52:58 +01:00
add coc symbols shortcut
This commit is contained in:
parent
5b19ca6e7f
commit
7a7e1a81d1
1 changed files with 3 additions and 0 deletions
|
@ -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>')
|
||||
|
|
Loading…
Reference in a new issue