pechorin / any-jump.vim

Jump to any definition and references πŸ‘ IDE madness without overhead πŸš€
1.08k stars 41 forks source link

Support for Vue.js and React.js #59

Open domi91c opened 4 years ago

domi91c commented 4 years ago

I think this plugin would be perfect for component based Javascript frameworks. It already handles the references, but doesn't seem to pick up the definitions based on file name.

pechorin commented 4 years ago

Can you provide explanation and example? Is you looking for export var or smth?

domi91c commented 4 years ago

Sorry, I didn't clarify. I meant for component tags inside the templates in Vue, for example.

For a template like the following, it'd be great if I could hover on my-record, and have AnyJump list the MyRecord component under Definitions. So far I haven't been able to find any Vim plugins that do this, even Vetur the Vue LSP doesn't seem to do this.

<template>
   <div id="app">
      <div class="group connectionState">
        Connection-State is: <em id="connection-state">{{connectionState}}</em>
      </div>
      <my-record :ds="ds"></my-record>
      <my-events :ds="ds"></my-events>
      <my-rpc :ds="ds"></my-rpc>
    </div>
</template>
pechorin commented 3 years ago

can you try to use visual mode and AnyJump after this?

Π‘Π½ΠΈΠΌΠΎΠΊ экрана 2020-12-08 Π² 03 42 51
tux255 commented 3 years ago

Would be nice to make it work for React.js components.