coc-ember icon indicating copy to clipboard operation
coc-ember copied to clipboard

go-to definition of components

Open jrock2004 opened this issue 6 years ago • 4 comments

Currently I have no way of click or using the keymap to go to definition or references of a component. Should be able to have my cursor over a component and go to its definition

jrock2004 avatar Nov 03 '19 17:11 jrock2004

The readme should def have some instructions for how to perform specific actions and how configure keymaps for them.

NullVoxPopuli avatar Nov 03 '19 17:11 NullVoxPopuli

So, some of why coc-ember may not work is that you may have an old version, and the coc updater isn't super stellar.

To find out where your extensions are, run: :CocList extensions for me, on linux, they are in ~/.config/coc/extensions. so, I rm -rf ~/.config/coc/extensions closed neovim reopened navigate to an ember template

if you have configured: nmap <silent> <leader>gd <Plug>(coc-definition) then, <leader>gd will navigate you from a template invocation to the component's template.

after starting fresh:

Confirmed Working

  • nmap <silent> <leader>gd <Plug>(coc-definition)

Confirmed Not Working

  • nmap <silent> <leader>gy <Plug>(coc-type-definition)
  • nmap <silent> <leader>gi <Plug>(coc-implementation)
  • nmap <silent> <leader>gr <Plug>(coc-references)

I need to make gifs for these.

NullVoxPopuli avatar Nov 03 '19 17:11 NullVoxPopuli

Sorry, football game was on. I just did this and now gd is working. I hope some day I can get to go to the js file of what I am working on. As far as how the update is going and how we had to remove everything, do you think there is a bug in coc updater? Maybe its worth a bug over in their repo?

jrock2004 avatar Nov 03 '19 21:11 jrock2004

Not sure, it's tricky to track down if it's an coc-updater issue or something else. I've thought about recommending using all coc plugins via vim-plug, cause then updates are managed just like anything else.

NullVoxPopuli avatar Nov 03 '19 22:11 NullVoxPopuli