Closed dong8yong8 closed 3 years ago
现在是支持跳转函数定义的. 可能没找到, 我把我的快捷键设定给你?
" Remap keys for gotos
nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references)
nnoremap <silent> gh :call <SID>show_documentation()<CR>
function! s:show_documentation()
if &filetype == 'vim'
execute 'h '.expand('<cword>')
else
call CocActionAsync('doHover')
endif
endfunction
这样的话 NORMAL
模式下可以直接 gd
跳转到函数定义
谢谢,这个真帮大忙了
这样的话
NORMAL
模式下可以直接gd
跳转到函数定义
请问如何跳转回来呢?
有解法了么?
ctrl+o 跳转回来
@wt1024 ctrl+o应该是默认支持的~~?
开发者你好,我想问一下该插件是否支持函数方法跳转到定义的地方呢? 我已经添加了
intelephense.licenceKey
如果支持,该怎样操作呢