marlonfan / coc-phpls

🐭 php language server for coc.nvim
MIT License
212 stars 16 forks source link

是否支持函数方法跳转?? #84

Closed dong8yong8 closed 3 years ago

dong8yong8 commented 3 years ago

开发者你好,我想问一下该插件是否支持函数方法跳转到定义的地方呢? 我已经添加了intelephense.licenceKey 如果支持,该怎样操作呢

marlonfan commented 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
marlonfan commented 3 years ago

这样的话 NORMAL 模式下可以直接 gd 跳转到函数定义

dong8yong8 commented 3 years ago

谢谢,这个真帮大忙了

lofiCafe commented 3 years ago

这样的话 NORMAL 模式下可以直接 gd 跳转到函数定义

请问如何跳转回来呢?

wt1024 commented 2 years ago

有解法了么?

wt1024 commented 2 years ago

ctrl+o 跳转回来

marlonfan commented 2 years ago

@wt1024 ctrl+o应该是默认支持的~~?